1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Install Plesk 8.6 Can't connect to local MySQL server through socket '/tmp/mysql.sock

Discussion in 'Plesk for Linux - 8.x and Older' started by tg25500, Sep 5, 2008.

  1. tg25500

    tg25500 Guest

    0
     
    YadaServer01# vi /tmp/psa_8.6.0_fr6.1.build86080722.02_installing.080905.18.22.log
    START psa-8.6.0-fr6.1.build86080722.02 upgrading AT Fri Sep 5 18:22:54 ICT 2008

    Trying to start service inetd... done
    Trying to start MySQL server... /usr/local/libexec/mysqld is stopped
    Starting mysql.
    /usr/local/libexec/mysqld is stopped
    rm: /tmp/mysql.sock: Operation not permitted
    /usr/local/libexec/mysqld (pid 72586) is running...

    ===> Checking for the necessary system accounts
    Checking for the system groups and users necessary for MySQL...
    Checking for the group 'mysql'...
    Group 'mysql' already exists

    Checking for the user 'mysql'...
    User 'mysql' already exists

    Checking for the system groups and users necessary for admin server...
    Checking for the group 'psaadm'...
    Group 'psaadm' already exists

    Checking for the user 'psaadm'...
    User 'psaadm' already exists

    Checking for the group 'psaserv'...
    Group 'psaserv' already exists

    Checking for the group 'psaserv'...
    Trying to add supplementary group 'psaserv' for user 'www'... already there
    Checking for the group 'psaserv'...
    Trying to add supplementary group 'psaserv' for user 'psaftp'... already there
    Checking for the group 'psaserv'...
    Trying to add supplementary group 'psaserv' for user 'psaadm'... already there
    Checking for the group 'psacln'...
    Group 'psacln' already exists

    Checking for the system groups and users necessary for Apache...
    Checking for the group 'www'...
    Group 'www' already exists

    Checking for the user 'www'...
    User 'www' already exists

    Trying to start MySQL server... /usr/local/libexec/mysqld (pid 72586) is running...
    Trying to establish test connection... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    ERROR while trying to establish test connection

    Aborting...

    STOP psa-8.6.0-fr6.1.build86080722.02 upgrading AT Fri Sep 5 18:22:56 ICT 2008
     
  2. Satoriya

    Satoriya Guest

    0
     
    Hi,

    Try ceating a symbol link from the real mysql sock to /tmp/mysql.sock how it is advised it KB:
    http://kb.odin.com/en/171
    # ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sockv
    Also, make sure just in case that there is no empty user in mysql:
    # mysql –uroot
    > Use mysql
    > select * from user where User=””;
     
Loading...