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.sock file for example mysl.sock_old in the following directory.

    / var / run / mysqld /

Restart your MySQL server now.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -