Solved

Mysql errors

Posted on 2008-06-25
3
1,019 Views
Last Modified: 2013-12-12
Suddenly for no apparent reason we are getting this kind of error regularly from our LAMP server.

If I refresh the page repeatedly it will finally process ok...

Anyone got a fix for it?
0
Comment
Question by:Riviera1
3 Comments
 
LVL 6

Accepted Solution

by:
Chorch earned 500 total points
ID: 21872561
Hello,

try this:

Edit your my.cnf and add or edit, or check the value:
[mysqld]
tmpdir = /tmp/

Make sure the folder exists (either the existing value or the new added) and chmod 777 it.

Restart mysql and try again to see if error is still there.
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 21872842
MySQL can throw this is the file system is full. See

http://dev.mysql.com/doc/refman/5.0/en/cannot-create.html

Check how much free space you have
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 21873211
It's almost always out-of-space in the tmp folder.  Happens at GoDaddy all the time.  If you control the server, add a lot of space to the tmp folder.  If you don't, show the error to the server admins.  They will know what to do.

Best regards, ~Ray
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question