PDA

View Full Version : Error accesing mysql database


meth
24th June 2008, 20:56
I have a website running under Debian 4.0 server with ispconfig, i have created a site and a database, when the php script try to connect to mysql i get the error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'web2db1'@'localhost' (using password: YES) in /home/web2/web/class/dbsqlclass/drivers/mysql.driver.php on line 53

the password and user in the database configuration file are ok, because i use these data to access trough phpMyAdmin and all is working fine except that problem.

till
25th June 2008, 14:57
I guess you mixed up username and database name. The username is web2u1 and not web2db1.

meth
25th June 2008, 15:06
Thanks it was my mistake.