Reset Drupal MySQL Password | Drupal 6 | SQL

If you have access to mysql through the root user and want to just change the drupal database user this will work for you

Otherwise check out http://www.thegeekstuff.com/2009/07/how-to-reset-forgot-mysql-root-password-on-unix-linux-windows/

Step 1:

open php my admin or login to mysql using the root user.

select the mysql database and use the following cmd

UPDATE user SET password = PASSWORD('newpassword') WHERE user = 'drupal_db_username'

Step 2:

update your drupal mysql database password in drupal by finding the file

sites/default/settings.php

Specifically, look for the line:

$db_url = 'mysql://username:password@localhost/databasename';

update it with a text editor

then restart mysql and your webserver

 

 

Trackback(0)
Comments (0)add comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security image
Write the displayed characters


busy