mysql anomalies (ERROR! The server quit without updating PID file) -


Something really strange happened in my MySQL database. This morning I came to work, and found out that my Mac desktop was off, even if I had left it last night.

I started it, and running on my local Microsoft DB (OS X 10.9.5 ) And tried to log in with their regular credentials, and there was an entry denied error. I tried to reset the root password via terminal:

  sudo /usr/local/mysql/support-files/mysql.server sudo mysqld_safe --skip-grant-tables mysql - U root UPDATE mysql.user SET password = password ('password') Where user = 'root'; Flush Pvt .;  

Then I tried to restart the server:

  sudo /usr/local/mysql/support-files/mysql.server start  

and found

 . Error! Server PID file (/usr/local/var/mysql/Mac-Pro.local.pid) left without updating  

I tried to check whether the mysql process is typing ps aux or not. Grep mysql , but did not find any results. Then I decided to reboot, and was running after the reboot server. However, if I try to restart the server by typing sudo mysql.server restart , I get the same error:

  error! MySQL server PID file was not found! MySQL is starting up .. Error! Server PID file (/usr/local/var/mysql/Mac-Pro.local.pid) left without updating  

and ps aux | | Grep mysql now gives:

  _mysql 515 0.0 1.4 3141512 460288? S 11:42 AM 0: 00.52 / USR / Local / MySQL / Bin / MyScalled - Besijer = / USR / Local / MISCIL --DataDir = / USR / Local / ISSLL / Data - PLUGIN-DIIR = / USR / Local / Mysql / lib / plugin --user = mysql --log-error = / usr / local / mysql / data / mac-pro.local.err --pid-file = / usr / local / mysql / data / mac- Pro .local.pid root 282 0.0 0.0 2458968 1152 ?? S 11:42 AM 0: 00.02 / bin / sh / usr / local / mysql / bin / mysqld_safe --datadir = / usr / local / mysql / data - pid-file = / usr / local / mysql / data / mac- Pro.local.pid verse 1392 0.0 0.0 2432784 644 s000 S + 11:47 am 0: 00.00 grep mysql  

I can connect mysql via mysql workbench or terminal, so the server Definitely going on. However, I have found that the database has been erased - it completely disappeared !! I have restored the backup, but the problem persists with the restart, and I worry that the data can disappear again, but could any reason be considered for these problems?

  pseudo trick /etc/my.cnf /etc/my.cnf.bak  

This worked mysql.server to refresh my CNF file


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -