ndzlogo-1-1
Loading ...

INDIA – HEADQUARTERS

INDIA

UNITED STATES

CANADA

 

In some cases MySQL will not get restarted even if we run the init script to start/restart it. The issue is due to the basedir variable in /etc/my.cnf file. Inorder to fix this you may need to comment out or remove the basedir directive line from /etc/my.cnf file.

[mysql.server ]
server=mysql
#basedir=/var/lib

Now restart mysql

# service mysql restart

Now the MySQL service should be up in the server.