SQL Error on installation

  • try via command with your password:
    mysql -u root -p
    If it's not working your password should be wrong, otherwise may you typed it wrong on Installation process :D

  • Code
    1. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    The problem is, i did not do a mysql installation befor the imscp installation (never had to do this in the past) and I was not answered to enter a sql password before the intallation.
    This screen apears during the configuration where you enter hostname, sql host, sql user and sql password.

  • So may your provider already installed mysql. May it's the same password as for your SSH root user. You can also purge mysql completely, included the databases, and try to rerun the installer..