Question

Problem installing mysql on centos and apache

Posted July 1, 2013 4.2k views
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):

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.

3 answers
Hello!

Please run your mysql:
service mysqld start


Thanks!
Thanks a lot it worked
Sorted me out, too!
Submit an Answer