Installation, Configuration, & Upgrades  :: 
Database connection error
 Top

  • I have gotten this error for the 3rd time. I have installed a new version of post nuke on the new server. I have uploaded our old mysql file to the new server and renamed the config.php file to have the old username and password. I have an error message of problem in connection database. I don't understand what i did wrong.
    Help please.

    this is what I have so far
    $pnconfig['dbtype'] = 'mysql';
    $pnconfig['dbtabletype'] = 'myisam';
    $pnconfig['dbhost'] = 'localhost';
    $pnconfig['dbuname'] = added user name here==';
    $pnconfig['dbpass'] = 'put right password here=';
    $pnconfig['dbname'] = 'put old DB name here';
    $pnconfig['system'] = '0';
    $pnconfig['prefix'] = 'nuke';
    $pnconfig['encoded'] = '0';

    Shawnee
  • ..hard to say.. did you back-up the config.php before upgrade?

    --
    http://www.invalidresponse.com
  • Make 200% sure that your user name, database host and password are set right. That error usually means that you have the wrong host, user name, dbname or password.
  • I did back up the config.php before the upgrade. Should I change it where it says localhost? I am copying the user name from the old site which we used the SQL files from and the user name and password from that site as well.
    Is that correct or would I use the new ones?

    Thank you for your help,
    Shawnee
  • Your new database may, and probably does, have a different user name, password and database name.
  • It Worked!! I'm dancing for joy!!
    Thank you so much!!

    Shawnee
This list is based on the users active over the last 60 minutes.