Bug #1306 | Table corruption on insert 'client is using or hasn't closed the table properly | ||
---|---|---|---|
Submitted: | 16 Sep 2003 10:42 | Modified: | 17 Sep 2003 5:22 |
Reporter: | Ben Lewis | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S3 (Non-critical) |
Version: | 4.0.15 | OS: | Windows (Win95/Win98 AND Linux) |
Assigned to: | CPU Architecture: | Any |
[16 Sep 2003 10:42]
Ben Lewis
[16 Sep 2003 10:43]
Ben Lewis
This is the PHP script. the db.inc.phtml is a standard db connection
Attachment: chooseShipTo.phtml (application/octet-stream, text), 4.50 KiB.
[16 Sep 2003 10:44]
Ben Lewis
Tables and bin log
Attachment: debugme.zip (application/x-zip-compressed, text), 1.92 KiB.
[17 Sep 2003 5:22]
Alexander Keremidarski
No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. As described in manual myisamchk must be never used when mysqld is also running. Note that even myisamchk message contains reference to this issue: MYISAM~1.EXE: warning: 1 clients is using or hasn't closed the table properly A "client using" it in this case usually means mysqld itself whcih is running. Please confirm if you have ran myisamchk after shutting down mysqld. If you had both running at the same time this is not a bug, but expected behaviour. On the contrast mysqlcheck can be used with running mysqld as it sends CHECK or REPAIR statements to mysqld. Just for the record: mysql> INSERT INTO shipTo (billToID,company,address1,address2,city,state,zip,mainPhone) VALUES ('10380','Z Test 3','test','test','test','test','',''); mysql> check table shipTo; +-------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +-------------+-------+----------+----------+ | bugs.shipTo | check | status | OK | +-------------+-------+----------+----------+
[17 Sep 2003 11:42]
Ben Lewis
It seems to have been in the PHP code, although for the life of me I cannot find out where. I edited it to update it to new PHP standards and everything works fine now. Sorry for the bother.
[17 Sep 2003 11:44]
Ben Lewis
PS. I had indeed stopped mysqld before running myisamchk. So, I'm not sure what the deal is.