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

Can't create database due 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
mrkidgrave
Posts: 7
Joined: Mon Feb 06, 2017 7:31 pm

Can't create database due to localhost failed
  • Quote

Post by mrkidgrave » Sat Feb 25, 2017 5:33 am

So on Vesta CP I went to DB to create a new database. However, when I try to create a database, I get an error that says "Error: Connection to localhost failed"

How can I fix this? Please help.
Top

mrkidgrave
Posts: 7
Joined: Mon Feb 06, 2017 7:31 pm

Re: Can't create database due to localhost failed
  • Quote

Post by mrkidgrave » Sat Feb 25, 2017 5:37 am

I just managed to fix this problem. This problem started to happen when I had changed the password of phpmyadmin. All I had to do was do nano /usr/local/vesta/conf/mysql.conf

From there I just deleted the old password, and updated with my new one. I hope this thread helps anyone who is having this issue!
Top

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

Re: Can't create database due to localhost failed
  • Quote

Post by skurudo » Mon Feb 27, 2017 7:32 pm

Nice found!

If you change pass in /root/.my.cnf, you can use mysql commands from ssh console too.
Top

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

Os: CentOS 6x
Web: apache + nginx
Re: Can't create database due to localhost failed
  • Quote

Post by Nakao » Mon Jan 04, 2021 10:57 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
 

 

Login  •  Register

I forgot my password