Some times you may get mysql error on the page. And on checking the status of the mysql, if you are getting following error
# /etc/init.d/mysqld statusThen the Fix is below.
ERROR! MySQL manager or server PID file could not be found!
Check the file /etc/my.conf and see any thing mentioned as " basedir= ". If nothing mentioned in the file, by default it would be /var/lib. Then, check the permission for /var/lib/mysql and make sure all are having user and group " mysql ". If not do
#chown -R mysql.mysql /var/lib/mysql
Then, restart mysql
#/etc/init.d/mysql restartThis should fix the issue.
No comments:
Post a Comment