Problem installing mysql on centos and apache

  • Posted July 1, 2013

I have installed centos and apache, now trying to install mysql, but there is a problem with the following message – and this keeps on repeating-- “enter is not being accepted as password”

In order to log into MySQL to secure it, we’ll need the current password for the root user. If you’ve just installed MySQL, and you haven’t set the root password yet, the password will be blank, so you should just press enter here.

Enter current password for root (enter for none): ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) Enter current password for root (enter for none):


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Sorted me out, too!

Thanks a lot it worked

Hello! <br> <br>Please run your mysql: <br>service mysqld start <br> <br> <br>Thanks!