Error establishing a database connection

Readmangaws

Newbie
Joined
Jul 29, 2022
Messages
34
Reaction score
13
Hi everyone. I am a newbie and i face an error establishing database connection with my new website. I tried accessing cyberpanel and it gives me error 500. I can't do anything to access my files and troubleshoot the problem. Can anyone help plz
 
Have you tried contacting your hosting CS? They should know how to fix your problem.
 
I contacted namecheap as they are the hosting company but they didn't do much nor give me any details .. their integrated vps panel don't give much options so here i am stuck
 
Did cyberpanel work previously or this a new install?
 
Have you tried this?
https://www.namecheap.com/support/knowledgebase/article.aspx/9366/2194/errors-500-502-503-504-and-508-reasons-and-ways-of-fixing/#500

If you already tried and it's not working, I'm not sure what the problem and the solution.
I tried this with no result
Did cyberpanel work previously or this a new install?
Yeah it did work previously but as the error establishing database connection occured it stopped working too giving error500.
 
check the wp-config.php file.

Edit it with the correct data (host / username / password).

Problem is 100% there.

A misconfiguration of wp-config.php file.
 
check the wp-config.php file.

Edit it with the correct data (host / username / password).

Problem is 100% there.

A misconfiguration of wp-config.php file.
Cyberpanel wouldn’t return a 500 error when trying to login if wp-config.php is not configured properly. Something else is wrong.
 
I tried this with no result

Yeah it did work previously but as the error establishing database connection occured it stopped working too giving error500.
Two reasons might be... wrong username/password for database connection or probably low RAM?
As Tom mentioned, it’s sounding like you have used all the ram available or you have used the entire hard drive partition. I don’t know for sure, obviously.

Are you able to login to the server via SSH?

Are you able to reboot the server?

What are the server specs?
 
Two reasons might be... wrong username/password for database connection or probably low RAM?
I really don't have a clue. I am just a newbie
As Tom mentioned, it’s sounding like you have used all the ram available or you have used the entire hard drive partition. I don’t know for sure, obviously.

Are you able to login to the server via SSH?

Are you able to reboot the server?

What are the server specs?
This is the second time it happened . First time was resolved by a friend znd he said it was due to lack of space because i uploaded so much content..

The friend told me about SSH but i don't know how to do it ..

I rebooted the server via vps control panel of namecheap but it didn't resolve the problem.

Can you please elaborate on SSH thing and how to do it . Thanks
 
I really don't have a clue. I am just a newbie

This is the second time it happened . First time was resolved by a friend znd he said it was due to lack of space because i uploaded so much content..

The friend told me about SSH but i don't know how to do it ..

I rebooted the server via vps control panel of namecheap but it didn't resolve the problem.

Can you please elaborate on SSH thing and how to do it . Thanks
Here’s information about SSH. Once you login via ssh you can determine if you need more hard drive space or not easily. If you plan on managing servers you need to learn how to use linux and learn about linux system administration.

https://www.howtogeek.com/311287/how-to-connect-to-an-ssh-server-from-windows-macos-or-linux/amp/
It does sound like you’re going to need to purchase more hard drive space. But I recommend logging into SSH and learning how to see what’s on your hard drive and what is taking up the most room so you can be sure that it’s your content and not the result of being hacked.
 
Back
Top