I recently moved a live Drupal install to my Linode from another host. I had already copied the tables to my Linode's mysql server, and had adjusted the Drupal settings.php to point to my Linode. It worked fine connecting to my Linode's mysql from the other host, but after transferring the files and adjusting the DNS to point to my Linode, it starting outputting the following error:
Code:
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.