Article ID: 171, created on Oct 6, 2008, last review on May 11, 2014

  • Applies to:
  • Plesk for Linux/Unix


First of all make sure that mysql is running with:

#ps ax | grep mysql | grep -v grep
4081 pts/8 S 0:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/
4110 pts/8 S 0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/ --skip-locking

If it is so, try to create a link from the /tmp/mysql.sock file:

#ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF