Jump to content

Possible to change SQL database user password?


Vertimyst

Recommended Posts

Hi,

 

I recently installed Wordpress to my server, and created the MySQL database through the cPanel wizard. When doing so, it asked me to create a user, so I entered the username 'admin' and put in a password.

 

Now, after doing that, I went to load up WHMCS, but I got this error:

 

Critical Error

Could not connect to the database

 

I went into cPanel and looked at my SQL users list. Apparently, there's only one 'admin' - which I apparently created for WHMCS. My guess is the password I entered for Wordpress overwrote the one WHMCS was using, so now it can't connect.

 

Is it possible to change the password WHMCS is trying to use? I know Wordpress uses a PHP configuration file for this, does WHMCS have a similar option?

Link to comment
Share on other sites

You are correct, you changed the password for an exisiting user. Login to cpanels filemanager and edit the file configuration.php in your whmcs directory.

 

change the password line:

$db_password = "xxxxxxxxx";

 

save and you should be ok

Link to comment
Share on other sites

You are correct, you changed the password for an exisiting user. Login to cpanels filemanager and edit the file configuration.php in your whmcs directory.

 

change the password line:

$db_password = "xxxxxxxxx";

 

save and you should be ok

 

Awesome, thanks so much. Exactly what I was looking for. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated