Error establishing database connection

Good day,

My website (trillteamleon.com) shows the error “error establishing database connection”, I tried changing the SQL username, password as well as the hostname via the config.php in my cPanel but nothing seems to be working. Please help. Thank you

My site: trillteamleon.com
Error being displayed: error establishing database connection

it’s displayed but without details! have you tried to enabe display errors via alter php config?

OR changing define('WP_DEBUG', false); to define('WP_DEBUG', true); in wp-config.php?

it’ll display error details at top of the page

https://infinityfree.net/support/common-mysql-errors/

is that spam? :flushed:

1 Like

If it says “Error estabilishing a database connection” it means the database connection failed. I’ve posted a link about that. Please check the Knowledge Base next time you post, as you might find something useful!

3 Likes

I’ve went through the article, I tried everything there. I checked all the details and information. Is there any other thing I can do? Thank you.

1 Like

Nothing else, but just check. If you cannot connect to the database, it means the password is not correct or the database permissions are corrupt. Change the password of your hosting account and use it or wait here for the Admin to reset the permissions for your database. Or delete the database and create a new one, without the same name, and edit the wp-config.php to include the new database name, username and password.

3 Likes

do what i said on hidden post. i know it’s belong to DB. but if we know the main error. we can fix it faster :smiley:

Ok thank you very much. I tried changing the password by logging in to the client area then going to the “edit account” section and changing the hosting account password, is that the right way to do it?

1 Like

Yes, it is.

1 Like

Ok thank you, I’ve tried that already. Guess I’ll just wait for the admin. How do I create a new database, do I do that via the MySQL databases? Is is not a complicated process?

1 Like

To create a database, you do that from the “MySQL Databases” section of the Control Panel, typing a name of it and clicking on “Add Database”. It’s not a complicated process.

2 Likes

Ok thanks, then I delete the old one? Great let me try that.

1 Like

you can remove. or you can don’t delete it too! limit is 400 DBs only!

depends. if you wish to have your past data in your old DB on new one. take backup to don’t lost them! after creating new one . paste the code on SQL Tag on new DB

Hey, there’s a button next to the database I have now called “admin”, what will happen to the information in there? Will it automatically be transferred to the new database?

Is the button name “phpMyAdmin”? If yes it brings to phpMyAdmin.

No the button name is “admin”

Hey, sorry I haven’t been replying to you. Your content seems deleted or hidden from my side.

After backing up the database data of your website from the old database (if you exported it first), you can import it on there, and modify the database information to include the new database informations.

Oh ok thank you. One more thing, how do i back it up? Do I just export it?

1 Like