Error accesing mysql database

Discussion in 'General' started by meth, Jun 24, 2008.

  1. meth

    meth New Member

    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.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you mixed up username and database name. The username is web2u1 and not web2db1.
     
  3. meth

    meth New Member

    Thanks it was my mistake.
     

Share This Page