Article ID: 124721, created on Mar 4, 2015, last review on Aug 11, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux


Installation of application in Plesk > Domains > > Website & Settings > Applications > Install application fails with the following error:

    ODBC error #08S01: [unixODBC][MySQL][ODBC 5.3(w) Driver]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    File   aps_php.php
    Line   12519
    Type   Exception


System tries to establish connection with /tmp/mysql.sock instead of /var/lib/mysql/mysql.sock.


  1. Check the link:

    # ls -ld /tmp/mysql.sock
    ls: cannot access /tmp/mysql.sock: No such file or directory
  2. Create the link:

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

Search Words

ODBC error

bad 502

Can't connect to local MySQL server through socket

29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF