Welcome, Guest
Username Password: Remember me

Database error: Need to change password in Joomla config
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Database error: Need to change password in Joomla config

Database error: Need to change password in Joomla config 11 years, 2 months ago #127

  • bradh
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Karma: 0
Help!

I was trying to get into my database to delete a table and forgot my db password. So I went into my cpanel and changed it thereby disabling my website completely.

Currently, I get the following error message when trying to visit my website or admin backend...

Database Error: Unable to connect to the database:Could not connect to MySQL

Question: Where do I go to change the password in the Joomla configuration?
Sincerely,

Rob McBryde
Web Developer
http://www.ivmwebsolutions.com
The topic has been locked.

Database error: Need to change password in Joomla config 11 years, 2 months ago #128

  • joomtorial
Hi Rob,

Common error you made there Rob and easily solved in the file:

configuration.php

The line that contains your database password is:
var $password = 'yournewpasswordgoeshere';


In the same file are also database name:
var $db = 'yourdatabase';


and database username:
var $user = 'yourdatabaseusername';
The topic has been locked.

Database error: Need to change password in Joomla config 11 years, 2 months ago #129

  • bradh
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Karma: 0
I did not see a password line as you suggested so I added one. Now I get this error.

Fatal error: Cannot redeclare JConfig::$password in /home/content/I/V/M/IVMROB/html/IVMWEBSOLUTIONS/configuration.php on line 50
Sincerely,

Rob McBryde
Web Developer
http://www.ivmwebsolutions.com
The topic has been locked.

Database error: Need to change password in Joomla config 11 years, 2 months ago #130

  • bradh
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Karma: 0
OK. I had to delete the pw line that I added and change the password on line 50.

We're back up!

Thanks again for your help!
Sincerely,

Rob McBryde
Web Developer
http://www.ivmwebsolutions.com
The topic has been locked.

Database error: Need to change password in Joomla config 11 years, 2 months ago #131

  • joomtorial
Not sure what happened there, but you are up again!

Forget my PM, you are up again!!!
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.20 seconds

Joomla Video Tutorials by Joomtorial