MySQL issue: Exception while getting MetaDataInfo

Hi Folks,

Our application is starting MySQL internally during startup.

Sometimes, I get the following exception and MySQL doesn't start:

[09 Jul 2007 14:05:35:733] Exception while getting MetaDataInfo : Can't create/write to file 'C:\DOCUME~1\sridhar\LOCALS~1\Temp\#sql_884_0.MYI' (Errcode: 13)

[09 Jul 2007 14:05:35:733] java.sql.SQLException: Can't create/write to file 'C:\DOCUME~1\sridhar\LOCALS~1\Temp\#sql_884_0.MYI' (Errcode: 13)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.Connection.execSQL(Connection.java:3118)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.Connection.execSQL(Connection.java:3047)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.Statement.executeQuery(Statement.java:1166)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.DatabaseMetaData$2.forEach(DatabaseMetaData.java:2046)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.DatabaseMetaData$IterateBlock.doForAll(DatabaseMetaData.java:76)

[09 Jul 2007 14:05:35:748] at com.mysql.jdbc.DatabaseMetaData.getColumns(DatabaseMetaData.java:1920)

[09 Jul 2007 14:05:35:748] at com.adventnet.nms.store.relational.MetaDataInfo.getMetaDataInfo(MetaDataInfo.java:355)

[09 Jul 2007 14:05:35:748] at com.adventnet.nms.store.relational.RelationalUtil.initMetaInfo(RelationalUtil.java:1251)

[09 Jul 2007 14:05:35:748] at com.adventnet.nms.store.relational.RelationalUtil.initMetaInfo(RelationalUtil.java:1240)

[09 Jul 2007 14:05:35:748] at com.adventnet.nms.startnms.NmsMainBE.main(NmsMainBE.java:361)

[09 Jul 2007 14:05:35:748] Exception while getting MetaDataInfo : Can't create/write to file

If any of you have seen the same, please do let me know what can be the problem and how to overcome the same.

Thanks much,

Sandeep

[2179 byte] By [Sandeep009a] at [2007-11-27 11:01:40]
# 1

Do you have permission to update that directory and/or file? Error code 13 is generally a permissions error. Did you recently update MySQL?

kmangolda at 2007-7-29 12:38:21 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

Hi,

I do have the permission. I've logged in as admin.

There was another related mail thread that says it may be to do with Virus Scan settings on the machine:

http://forum.java.sun.com/thread.jspa?threadID=5061757&messageID=9333692

Will try the solution provided there.

Thanks,

Sandeep

Sandeep009a at 2007-7-29 12:38:21 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...