Koozali.org: home of the SME Server

problem with mysql

gomafey

problem with mysql
« on: May 06, 2001, 11:52:55 PM »
i try to connect to mysqldb with php.
i use a text files that contains my (host,login and passwords)
$host = "localhost";
$login = "root";
$password =" ";
php send me back this error message :

Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: YES) in /home/e-smith/files/primary/html/photos/photos2.php3 on line 13

Franck PIERRE

Re: problem with mysql
« Reply #1 on: May 07, 2001, 02:55:04 AM »
You have to use the root password.
You can find it in /root/.my.cnf

Regards

gomafey

Re: problem with mysql
« Reply #2 on: May 07, 2001, 03:18:42 AM »
yes it works
thank you