Moving Drupal -- database connection problem
Warning: PDO::__construct(): [2002] Connection refused (trying to connect via tcp://database.youdolinux.com:3306) in DatabaseConnection->__construct() (line 304 of /srv/www/arklinux.org/html/includes/database/database.inc).
Warning: PDO::__construct(): [2002] Connection refused (trying to connect via tcp://database.youdolinux.com:3306) in DatabaseConnection->__construct() (line 304 of /srv/www/arklinux.org/html/includes/database/database.inc).
Warning: PDO::__construct(): [2002] Connection refused (trying to connect via tcp://database.youdolinux.com:3306) in DatabaseConnection->__construct() (line 304 of /srv/www/arklinux.org/html/includes/database/database.inc).
Warning: PDO::__construct(): [2002] Connection refused (trying to connect via tcp://database.youdolinux.com:3306) in DatabaseConnection->__construct() (line 304 of /srv/www/arklinux.org/html/includes/database/database.inc).
PDOException: SQLSTATE[HY000] [2002] Connection refused in lock_may_be_available() (line 164 of /srv/www/arklinux.org/html/includes/lock.inc).
The strange problem here is that settings.php is no longer pointing to database.youdolinux.com, I already changed it to localhost. I tried changing it back with no joy.
I currently have a temporary makeshift web page showing up for the site, but the Drupal version is so much better.
EDIT: I have already double checked that settings.php has the correct database, mysql user, and mysql password.
1 Reply
I never saw that multi-line section before, and never had to modify it in the past…