Problem installing mysql on centos and apache

July 1, 2013 2.6k 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):
3 Answers

Please run your mysql:
service mysqld start

Have another answer? Share your knowledge.