Forum Moderators: coopster

Message Too Old, No Replies

Godaddy PHP Database Password Change Connection Lost

Godaddy Database Password Change Connection Lost

         

webcolors

4:27 pm on Apr 28, 2010 (gmt 0)

10+ Year Member



Hello I hope someone can help me with this, I have the website hosted by godaddy and I reset the MySQL database password, now the connection between the database and the website is broken. Can someone please help me with how I can connect the website to the database using the new password? I am not very familier with PHP code or MySQL

Thank you very much.

Readie

5:08 pm on Apr 28, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Search your .php documents for this line:

mysql_connect(

After that, it could contain strings, i.e.:

mysql_connect('localhost', 'myusername', 'mypassword');

Or, perhaps variables:

$serv = 'localhost';
$user = 'myusername';
$pass = 'mypassword';
mysql_connect($serv, $user, $pass);

(Obviously pseudonyms of the above may be present)

In the case of the former, just update the third parameter to the new password.
In the case of the latter, you'll need to track down the variable used and update the value of that to the new password.

rocknbil

5:35 pm on Apr 28, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also answered here [webmasterworld.com]