forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: riffhai on December 14, 2009, 09:20:32 am

Title: mysql access denied
Post by: riffhai on December 14, 2009, 09:20:32 am
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