Hi

I follow the instructions here :

https://www.digitalocean.com/community/tutorials/how-to-install-drupal-o...

And get this :

[root@centos-512mb-nyc3-01 ~]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@centos-512mb-nyc3-01 ~]#

What is the password ?

After searching the web an hour, can't find any solution.
Not even in drupal.org

Thanks.

Comments

aadil.addweb’s picture

The password is your MySQL password which is you set at the time of phpmyadmin installation.

e2’s picture

followed this:

https://www.digitalocean.com/community/tutorials/how-to-install-drupal-o...

mysql_secure_installation

this solved the issue for me.

mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

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):