Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: coppermine trying to access database as a user that's different than what I set.  (Read 2996 times)

0 Members and 1 Guest are viewing this topic.

megaspaz

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

I can't get into my gallery because coppermine can't connect to the database:
Coppermine critical error:
Unable to connect to database !

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

But I didn't set the mysql user to be "root". in include/config.inc.php the contents are:

<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your database server
$CONFIG['dbuser'] =                         'sa';        // Your mysql username
$CONFIG['dbpass'] =                         'somepass';                // Your mysql password
$CONFIG['dbname'] =                         'somedb';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg143_';
?>

Anybody know how to go about fixing this?

Thanks. :)

edit: coppermine was working fine until i restarted apache
« Last Edit: March 30, 2006, 06:27:30 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

don't use the "sa" account for everyday actions, and especially not for coppermine.
Logged

megaspaz

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

I think you may be mistaken in that the 'sa' account isn't the same 'sa' account that's setup in MSSQL. This is a mysql database and the 'sa' account is something I created. It's no different than any other mysql user that I would create. The question is, why is coppermine not trying to connect with the credentials I set up in install.php.

Thanks :)
Logged

megaspaz

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

Problem solved. It' not enough to turn off safe_mode... I also needed to turn off sql.safe_mode. In httpd.conf, add these lines in the right directory directive or htaccess file:

Quote
  php_admin_flag safe_mode off
  php_admin_flag sql.safe_mode off
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.