mysql access denied mysql access denied
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

mysql access denied

Started by riffhai, December 14, 2009, 09:20:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

riffhai

hi all
I've seen there are many such issues before - I've read them all. nevertheless I cannot solve my problem.

Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'sharkspo'@'localhost' (using password: NO)

I finally found the include/config.inc.php. there I see the correct username and databasename, I also see a password. when checking the cpanel of my host the names are the same, but there is no password. the path is the following

Connection Strings
Perl   $dbh = DBI->connect("DBI:mysql:xxx_cpm1:localhost","xxx_cpm1","<PASSWORD HERE>");
PHP   $dbh=mysql_connect ("localhost", "xxx_cpm1", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("xxx_cpm1");

do I have to change something and if so, where???

Your help would be very much appreciated!
regards riffhai

www.sharkspoint.com/gallery