Problem - connection to MySQL

Help
2009-06-19
2012-12-13
  • Hello.
    I have problem connect to MySQL

    Error:
    Unable to connect to the database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(2)

    I have installe xampp on my linux, and mysql is in /opt/lampp/mysql

    Where can i change config of mysql destination, or how to repair this ?

    Thanks,