Results 1 to 2 of 2
Last night I ran a new backup scripts that did a mysql dump of all data. Today the server was running fine, and then started to loose connection to certain ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-16-2012 #1Just Joined!
- Join Date
- Oct 2012
- Posts
- 2
Mysql fails to start - mysqld service is running...
Last night I ran a new backup scripts that did a mysql dump of all data. Today the server was running fine, and then started to loose connection to certain tables. When I tried
it gave me an error:Code:service mysqld restart
Code:
. With that \r it looked as if a file was in the wrong format."chown: cannot access `/var/lib/mysql\r': No such file or directory"
I opened the the /etc/my.cnf and set the format to unix with:
Code:
and saved it.Code:set fileformat=unix
Now restarting the mysqld gives me:
Code:
The /etc/my.cnf file error log is pointing to /var/log/mysqld.log but that is blank.Timeout error occurred trying to start MySQL Daemon.
Would removing mysql and reinstalling it help? I'm keeping that as a last resort if it's just a file or setting problem. The script I ran just used a simple
Code:
When I do status check on mysqld it says it's running... but fails to start.Code:mysqldump --user=myuser --password=mypass--all-databases --add-drop-table > /media/usbdisk/WebBackups/tmp_backup/backup.sql
I've set the permission of my.cnf to 644 owned by root.
I think a key to this is getting the error logs, but they don't seem to be writing. Any ideas why?
Thanks for any help.Last edited by wad3brown; 10-16-2012 at 09:40 PM. Reason: more detail
- 10-16-2012 #2Just Joined!
- Join Date
- Oct 2012
- Posts
- 2
I found a suggestion to check if there was anything that could be deleted out of the /var folder. I opened up about 500mb and mysql was able to connect. Not sure why those are associated, but it worked.


Reply With Quote
