On Fri, May 22, 2009 at 7:25 PM, Kaone Mathuba <[email protected]> wrote:
> Hi list,
>
> I'm running kannel on openSUSE 11.1 with LAMPP. I have installed sqlbox.
> When I start it I get
> ERROR: MYSQL: Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)
> how do I tell it to use /opt/lampp/var/mysql/mysql.sock instead.

Open your MySQL config file /etc/my.cnf or /etc/mysql/my.cnf and
edit the lines where the socket file is '/var/lib/mysql/mysql.sock'
The lines have format
socket          = /var/run/mysqld/mysqld.sock

which in your case should be:
socket          = /opt/lampp/var/mysql/mysql.sock

Make sure the user that runs the MySQL server can access that file ;)

BR, Jovan

Reply via email to