PDA

View Full Version : can`t connect database in debian etch


shorewall
12-31-2007, 07:58 AM
Dear, my ispmgr can`t connect to database, mysql in features is off, mysql but in services is on. when add database server theres cant connect too.


:(:(
ispmgr.log :

Dec 31 11:54:54 ^[[1;35mWARNING Can't connect to mysql as root@localhost MySQLError('Access denied for user 'root'@'localhost' (using password: YES)').^[[0m
Dec 31 11:54:54 ^[[1;31mERROR Exception 1: Can't connect to database^[[0m
Dec 31 11:54:54 ^[[1;36mEXTINFO Load config '/etc/my.cnf'^[[0m

but when I login to mysql its can connect :

server:/etc# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 39
Server version: 5.0.32-Debian_7etch3-log Debian etch distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>


please give me some solution. thanks

Igor
12-31-2007, 08:19 AM
set correct mysql socket path