Mysql not restarting in ubuntu -
I am trying to connect my Java program in the host OS with mysql database in Yusufu VM. I have created the necessary tables in the database and changed the bind address for the host OS address in the my.cnf file. While I'm trying to restart mysql, I'm getting:
mysql stop / wait start: failed to start job then When I'm trying to use mysql, I am getting the following error:
Error 2002 (HIATA): Server '/ var / run / mysqld' via local MySQL socket /mysql.sock '(2) Please help me with the solution.
Just follow the steps below to start MySQL server.
- Try restarting the MySQL server from the terminal (in RHEL it is
/etc/init.d/mysqld restart)
However, follow the steps given below to the same problem.
-
With the name change
mysql.sockfile for examplemysl.sock_oldin the following directory./ var / run / mysqld /
Restart your MySQL server now.
Comments
Post a Comment