Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

Error connection to localhost failed

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
icbrad
Posts: 1
Joined: Sun Nov 29, 2015 9:05 am

Error connection to localhost failed
  • Quote

Post by icbrad » Sun Nov 29, 2015 9:17 am

Hello,

I set up my database, but when I want to connect my site to it says:
error connection to localhost failed

It's also not possible to change or delete the DB or to create a new one.

Does anyone has a solution?

Ad
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Error connection to localhost failed
  • Quote

Post by skurudo » Sun Nov 29, 2015 5:51 pm

Do you changed root password for your database? If so, then you need add new pass in /usr/local/vesta/conf/mysql.conf
Top

Fleuv
Posts: 18
Joined: Thu May 28, 2015 4:27 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Error connection to localhost failed
  • Quote

Post by Fleuv » Thu Jan 19, 2017 4:33 am

I stumbled upon the same error after changing the password via the panel > server > db > mysql > password

After doing some research I noticed that the password value didn't change in /root/.my.cnf however at /usr/local/vesta/conf/mysql.conf it shows me the right password, what I submitted through the panel.
Top

Nakao
Posts: 9
Joined: Sun Dec 20, 2020 9:12 am

Os: CentOS 6x
Web: apache + nginx
Re: Error connection to localhost failed
  • Quote

Post by Nakao » Mon Jan 04, 2021 10:52 pm

Thank you guys for suggestion.

I recommend that you should restart MySQL after change the password. See this topic here to do that: viewtopic.php?t=17561
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password