Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: gomafey on May 06, 2001, 11:52:55 PM

Title: problem with mysql
Post by: gomafey 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
Title: Re: problem with mysql
Post by: Franck PIERRE on May 07, 2001, 02:55:04 AM
You have to use the root password.
You can find it in /root/.my.cnf

Regards
Title: Re: problem with mysql
Post by: gomafey on May 07, 2001, 03:18:42 AM
yes it works
thank you