While restarting MySQL service, you may get the error below ,
"MySQL is running but PID file could not be found"In order to to fix this error , Lets try to do the below steps,
1) Create the directory " var/run/mysql ".
# mkdir /var/run/mysql2) Now create file " mysqld.pid " .
# touch mysqld.pid3) change its ownership of " mysqld.pid " to "mysql:mysql "
# chown mysql:mysql mysqld.pid4) Restart MySQL service by,
# /etc/init.d/mysql startThat's it, try this and let me know you've get the result. :-)
No comments:
Post a Comment