Advanced search  

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

Pages: [1]   Go Down

Author Topic: mysql access denied  (Read 3082 times)

0 Members and 1 Guest are viewing this topic.

riffhai

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
mysql access denied
« 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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.