Jump to content

[Solved] Mysql Database Not Connecting


tagomago

Recommended Posts

Hi, I have been having problems with my website over the last few days. There seems to be a problem connecting to the MySQL database. I get the following error trying to access the main page...

 

Unable to connect to database [Access denied for user 'tagomago@localhost' (using password: YES)]

 

When I try and access the database through phpMyAdmin it goes to a login screen when I type in the details that I use to login to cPanel it goes to a page saying 'HTTP 500 Internal Server Error'.

 

Is there a problem with the server at the moment? Will this fixed in a few days?

Link to comment
Share on other sites

The Access Denied errors seen on websites are fixable by deleting and recreating the database user. Be sure to reassign it to the database after deleting and recreating it.

 

PhpMyAdmin and your cPanel MySQL account are still broken though (sometimes changing your password will fix these, but it did not when I tried it).

Link to comment
Share on other sites

  • 2 weeks later...

I had a problem connecting to the MySQL database (error 2).

When changing user's password, I got:

Although the system’s database map includes a MySQL user named “xxxx_xxxxxx”, the MySQL server reported that no user with this name exists. Contact your system administrator.

I add a new privileged user and change configuration file. It works.

 

Thanks!

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.

×
×
  • Create New...