Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By e2 on
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
Your password is
The password is your MySQL password which is you set at the time of phpmyadmin installation.
never installed phpmyadmin
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):