How To Fix Error Establishing A Database Connection On WordPress Website
May 6, 2025
In this tutorial I show you step by step process to Fix Error Establishing A Database Connection On Wordpress Website WATCH: https://youtu.be/Kc735X4GU6k
View Video Transcript
0:00
In this tutorial, I'm going to show you
0:01
how you can solve error establishing a
0:04
database connection problem on your
0:06
WordPress website. So, I'm trying to log
0:08
my website, but I'm encountering this
0:11
problem. To solve this problem is quite
0:13
easy. All you need to do is to go ahead
0:15
and log into your C panel. So, there are
0:18
two ways you can log into your C panel.
0:20
One, you can use your credentials. If
0:22
you can still remember them,
0:23
alternatively, if you can't remember
0:24
your credentials, then you need to go to
0:26
your hosting account. And from there you
0:28
can directly log into your C panel. So
0:31
I'll go ahead and access the C panel
0:33
through my hosting company. And I'll log
0:36
into my client area first. And from here
0:39
now I'll be able to see all the websites
0:40
that I have with this hosting company.
0:43
As you can see I have two and the one I
0:46
want to log into into C panel is this.
0:48
So I'll just go ahead and use this
0:50
option C panel login and this will take
0:53
me directly to my C panel.
0:57
And here we go. So in most cases you are
1:00
experiencing this establishing database
1:02
connection because of a configuration
1:05
error. And from here the simplest way to
1:07
clear this error is try to visiting your
1:10
website through the primary domain that
1:12
is active here. So if I go ahead and try
1:14
and click on it you can see now I can
1:18
visit my website and now so I'll go
1:20
ahead and try now to log into my
1:22
website. And now you see if I tap on
1:24
login I should be able to login. And
1:28
here we go. Now I can access my
1:30
WordPress dashboard. So that's the
1:33
easiest way you can do this. But if the
1:35
problem persists and you can't get your
1:38
dashboard back, then you may want to go
1:40
ahead and visit file manager and then
1:43
access it through the public html
1:47
here. Yeah. And one of the reason you
1:49
may be experiencing such problems is
1:52
because of maybe a conflicting plug-in.
1:54
And for this the best thing to do is to
1:57
go ahead and and deactivate all the
1:59
plugins because you cannot access your
2:01
WordPress. And to deactivate your
2:03
plugins once you are under public html
2:06
just go ahead and click on WP content
2:09
here. So if we go ahead
2:16
and So if I go
2:18
ahead and open it, you can see we have
2:22
our plug-in folder which is this. And if
2:24
we double click on it again now, it will
2:26
open all the plugins that we have on our
2:29
website. So to deactivate any of these
2:32
plugins, just go ahead and rename the
2:35
plugins. So for instance, maybe you are
2:37
suspecting a cashin plugin to be the
2:39
reason you are experiencing this
2:40
problem. Go ahead and find it and then
2:43
just change its name. For instance, I
2:45
want to deactivate this and spam B
2:48
plug-in. All I need to do is to right
2:50
click on it and then rename it and then
2:53
just change this name or just alter even
2:56
by one letter. If I just delete the
2:58
first letter and then rename the file.
3:01
Now if I go ahead under my
3:04
plugins I'll find I should be able to
3:06
find that plugin inactive. Now let's see
3:10
and look at that. Now it is inactive yet
3:12
it was active. So you can do the same
3:14
for all the other plugins and then try
3:16
logging into your WordPress dashboard
3:18
and this time around you should be able
3:20
to do so. However, should this not solve
3:22
your problem then then you may want to
3:23
go ahead and contact and contact your
3:25
web hosting company and they should try
3:27
to troubleshoot this problem from their
3:29
end. And now everything should be okay.
3:32
So if you have any other question,
3:33
kindly let me know in the comment
3:34
section. Otherwise, if this video was
3:36
helpful to you, kindly hit the like
3:38
button and subscribe to this channel to
3:40
support me. Thanks for watching and
3:41
let's meet in the next video.