MDB2 Error: connect failed

_doConnect: [Error message: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] [Native code: 2002] [Native message: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] ** mysql(mysql)://terapiin_comm:xxx@localhost/terapiin_comm
MDB2 Error: connect failed

_doConnect: [Error message: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] [Native code: 2002] [Native message: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] ** mysql(mysql)://terapiin_comm:xxx@localhost/terapiin_comm