473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

mysql crashing, no error in error log

110 100+
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
Expand|Select|Wrap|Line Numbers
  1. +----------+--------------+------+-----+-------------------+-------+
  2. | Field    | Type         | Null | Key | Default           | Extra |
  3. +----------+--------------+------+-----+-------------------+-------+
  4. | id       | int(11)      | NO   | PRI |                   |       |
  5. | cid      | int(11)      | NO   |     |                   |       |
  6. | namefix  | varchar(255) | NO   | MUL |                   |       |
  7. | approved | tinyint(2)   | NO   | MUL |                   |       |
  8. | added    | timestamp    | NO   |     | CURRENT_TIMESTAMP |       |
  9.  
The queries are being passed via php, and the update query looks like this
Expand|Select|Wrap|Line Numbers
  1. UPDATE artistnamefix SET namefix='$newName', approved='2' WHERE id='$id'
  2.  
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?
Jan 6 '09 #1
3 2216
Atli
5,058 Expert 4TB
Hi.

Seeing as this is working fine on you local server, I would assume this has something to do with your other server, rather than this being a problem with the SQL itself.

Are there any major differences in the two servers?
- Like different MySQL or PHP versions?
Could it be that the your HDD or RAM is corrupted?
- That the MySQL server is trying to use corrupt resources and locks up because of that?

Do you use table locks or are you executing SQL queries in loops that may be running non-stop, or anything in that direction that may be causing MySQL to hang?

P.S.
Although this will probably not have any effect on this problem, you really shouldn't enclose numeric values in quotes in your SQL queries. Only string-like data should be quoted.
Jan 6 '09 #2
pedalpete
110 100+
Thanks Atli,
I wasn't aware that you are not supposed to quote numerals in sql quiries, I'll change that.

Turned out that this was due to an indexing issue.
Didn't show up on test server because it is only working with a much smaller dataset (as is doesn't have the power of the prod server).

Thanks for the help,
Pete
Jan 7 '09 #3
Atli
5,058 Expert 4TB
Glad you found the problem.
Always hard to debug stuff like this.
Jan 7 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Lenz Grimmer | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, MySQL 4.0.14, a new version of the popular Open Source/Free Software Database, has been released. It is now available in source and binary...
0
by: David Bernick | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 We're doing a select query on our INNODB database. Linux 2.4.21 on x86 (Athlon). Mysql is 4.0.13. Anyone seen this problem before? - ----- InnoDB:...
0
by: Richard Gabriel | last post by:
Hi all, The following keeps happening and I can't pinpoint a query that is causing it. It did not happen in 3.23.x, but started upon upgrading to 4.0.14. The operating system/hardware...
0
by: Henry Hank | last post by:
Environment: I'm setting up a database server on a Dell Poweredge 2650, dual 1.8GHZ pentium with 1GB of memory and RAID5 drives. I've installed RedHat 9, and updated the kernel to 2.4.20-19.9smp....
0
by: Matt Weakly | last post by:
Greetings: My MySQL (4.1.0 alpha) server crashes while processing large queries from a web page (using ColdFusion 5.0): ODBC Error Code = S1000 (General error) Lost connection to MySQL server...
2
by: Dan | last post by:
Hello. I have recently tried upgrading the MySql connector for my servlet from 2.0.4 to 3.0.9. I have found a minor limitation in 2.0.4 and was hoping that 3.0.9 would fix it. However, now I...
0
by: alchimista | last post by:
hi, I've succesfully installed mysql on linux 2.4.x (TRUSTIX), I've tried to move it on my chroot jail but after 10s it crashes with the following message: --- cut here---- 040602 18:22:21 ...
2
by: pratchaya | last post by:
This is my sample error in my MySQL Log New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://www.mysql.com/doc/en/Using_stack_trace.html and follow instructions...
6
by: John Salerno | last post by:
Hi everyone. I hope someone can help me with this problem. I have installed MySQL CE 5.0, but during the configuration wizard I get an error. It has frozen up during the final step (MySQL Server...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.