I've just recently started working with a new script and it runs without error on my local, but on my prod server, the sql crashes once every 50 or 75 times it runs.
I checked the error logs, but it just shows me starting and stopping mysql, which I do because the table becomes unresponsive.
I've tried running CHECK TABLE, but that hung as well.
But then a restart and everything is fine.
The table has just over 100,000 rows.
here's the describe
The queries are being passed via php, and the update query looks like this
seems pretty straight forward to me, but there is definately something wrong somewhere.
When it fails, no errors are being returned via php, the whole thing just hangs.
The 'namefix' that I've seen fail don't have any special characters or anything either... very strange.
Any suggestions as to how to further debug this?
I checked the error logs, but it just shows me starting and stopping mysql, which I do because the table becomes unresponsive.
I've tried running CHECK TABLE, but that hung as well.
But then a restart and everything is fine.
The table has just over 100,000 rows.
here's the describe
Code:
+----------+--------------+------+-----+-------------------+-------+ | Field | Type | Null | Key | Default | Extra | +----------+--------------+------+-----+-------------------+-------+ | id | int(11) | NO | PRI | | | | cid | int(11) | NO | | | | | namefix | varchar(255) | NO | MUL | | | | approved | tinyint(2) | NO | MUL | | | | added | timestamp | NO | | CURRENT_TIMESTAMP | |
Code:
UPDATE artistnamefix SET namefix='$newName', approved='2' WHERE id='$id'
When it fails, no errors are being returned via php, the whole thing just hangs.
The 'namefix' that I've seen fail don't have any special characters or anything either... very strange.
Any suggestions as to how to further debug this?
Comment