Error: Connection to localhost failed

Error: Connection to localhost failed

aaaand what you want to say us with that particuöar string? :smiley:

3 Likes

Check your settings

image

6 Likes

Sorry, that error comes out when trying to delete a database.

It’s not enogh.

Error: Connection to localhost failed

Try to give more specified info, maybe a screenshot. Or just describe the issue by words as you can.

Are you able to connect via ssh

mysql -u root -h localhost

ok


Your mysql server seems to be offline…

1 Like

Thanks, it was that the services were disconnected.
It must have been because Linode did an update last night.

Experience for when it happens again, the first thing is to check that the services are active.

Sorry for the inconvenience, I am new to VPS, and even more so with HestiaCP, the truth is that I am super happy with the panel.

I have same error with postgresql.
I created self-hosted heistia.

in logs

2023-06-20 07:32:52.264 MSK [1978109] postgres@postgres FATAL:  password authentication failed for user "postgres"
2023-06-20 07:32:52.264 MSK [1978109] postgres@postgres DETAIL:  Connection matched pg_hba.conf line 8: "host    all         all         ::1/128               md5"
2023-06-20 07:32:52.285 MSK [1978110] postgres@postgres FATAL:  password authentication failed for user "postgres"
2023-06-20 07:32:52.285 MSK [1978110] postgres@postgres DETAIL:  Connection matched pg_hba.conf line 8: "host    all         all         ::1/128               md5"

pg_hba.conf

# "local" is for Unix domain socket connections only
local   all         all                               ident

# IPv4 local connections:
host    all         all         127.0.0.1/32          md5

# IPv6 local connections:
host    all         all         ::1/128               md5

# Others
host    all         all         0.0.0.0/0             md5