Previous Thread
Next Thread
Print Thread
Rate Thread
#274499 05/30/2004 1:33 PM
Joined: Feb 2004
Posts: 3
Lurker
Lurker
Offline
Joined: Feb 2004
Posts: 3
For security reasons I needed to change the db password. Stupidly, I guess, I used "edit config" from admin and typed a new password into the db password field and saved the file. Now I have multiple MySQL errors and I cannot log into the forums. (No surprise, it's not able to access the db now.) When I look at config.inc.php, the new password is listed under "//Password for the database..." but it's obviously not working. If I edit that file changing the password to the original is still doesn't work. Is this a conflict between the password as sent by threads and the password set for the database on the webhost?

How do I fix the problem and what is the correct method for changing the database password?

Thanks

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Edit config in Threads does not change your DB password, it only changes the password it uses to try and connect to the DB. To change your DB password you will have to do through your website control panel or whatever method you use to setup new DBs.

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Can you post the mysql errors you're getting?

Joined: Feb 2004
Posts: 3
Lurker
Lurker
Offline
Joined: Feb 2004
Posts: 3
It starts with these two:

[]Warning: mysql_connect(): Access denied for user: 'ironcircle@localhost' (Using password: YES) in /home/virtual/site280/fst/var/www/html/forums/mysql.inc.php on line 35

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site280/fst/var/www/html/forums/mysql.inc.php on line 45[/]

All the others, I'm sure, are a result but they are

[]Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site280/fst/var/www/html/forums/mysql.inc.php on line 104

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site280/fst/var/www/html/forums/mysql.inc.php on line 130[/]

etc. etc. but it's all a result of not being able to access the database. Each time it tries to query the db or do a fetch_array, it generates an error.

I am going to try the suggestion Astaran made by changing the db password at the webhost and then editing config.inc.php to reflect that password. Hopefully that will fix it although I don't know why editing config.inc.php so that it contained the original password didn't work when I tried it initially.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Looks like you have a different password stored on your server, to that contained within $config['dbpass'] under config.inc.php

I would suggest resetting both, making sure that they are same - don't forget that the password will be case sensitive under linux.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
and use the "flush privileges" command on your mysql server after you changed your password.

Joined: Feb 2004
Posts: 3
Lurker
Lurker
Offline
Joined: Feb 2004
Posts: 3
Thank you guys. It's working again.

I'll do the flush, Astaran.

I hate being a newb but then we were all newbs at some time.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)