Hi,
i am having difficulty solving an error message:
Can't connect to local MySQL server through socket '/tmp/mysql.sock'
I am seeing this error message when i use XDebug and Eclipse for a local Drupal installation on a Ubuntu 10.04 machine. I am trying to complete a migration from Drupal 5 to Drupal 6.
(I can load the index.php of the Drupal installation in Firefox. however, i can't login with the root password. To solve this i'm using Xdebug/Eclipse.)
i have been trying to fix this for a week. frustration is very high. i can't believe the difficulty of this. I posted about it on another forum but so far no one has replied:
http://ubuntuforums.org/showthread.php?p=10302627#post10302627
i can connect to mysql in the terminal by:
mysql -uroot -p
once i have authenticated, the unix sock file is identified as:
/var/run/mysqld/mysqld.sock
i am not however able to connect this way:
mysqladmin --socket=/var/run/mysqld/mysqld.sock --user=root --password=foobar version
i get:
Access denied for user 'root'@'localhost
I have created (i think) a symbolic link:
cd /tmp/
sudo ln -s /var/run/mysqld/
this worked the first time i did it. (subsequent tries: File exists.)
I have noted that Drupal expects a file named:
/tmp/mysql.sock
while I have:
/var/run/mysqld/mysqld.sock