Unable to connect to your database server

Hi,

In a Codeigniter script, when I try to access the admin area I get the following message.

I have checked the config file and it definatley seems to have the correct db, user, pwd info, so I am lost.
Any help please?

Thanks

oz

BTW Line 48 mentioned is…

{
return mysql_connect($this->hostname, $this->username, $this->password);
}


A PHP Error was encountered

Severity: Warning

Message: mysql_connect() [function.mysql-connect]: Access denied for user ‘classicr’@‘localhost’ (using password: YES)

Filename: drivers/DB_mysql.php

Line Number: 48
An Error Was Encountered

Unable to connect to your database server using the provided settings.

That is one of the reason i gave up codeigniter, I’m testing some other generators, and im realu enjoying scriptcase so far, have you ever used it?

Hi,

Your connection settings are wrong.

eg.

$con = mysql_connect(“localhost”,“username”,“password”);
if (!$con)
{
die('Could not connect: ’ . mysql_error());
}

You seem to have not entered your password. Although, I don’t know for sure as you haven’t put in your code.

Sponsor our Newsletter | Privacy Policy | Terms of Service