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 connect to localhost even after updating password into conf file

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
zer0890
Posts: 3
Joined: Sun Apr 08, 2018 10:21 am

Os: Debian 8x
Web: apache + nginx
Can't connect to localhost even after updating password into conf file
  • Quote

Post by zer0890 » Thu May 03, 2018 7:08 pm

I changed my password 3 weeks ago , i think i restarted my server and since yesterday i had no issue to create new DB.
This morning, i tried to create a new DB and i got the error can't connect to localhost.
The password into
/usr/local/vesta/conf/mysql.conf
and root/my.conf are updated.

Also i have the same issue with roundcube :
DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!

I have some websites that are running and they can communicate with the DB ( like http://zertech.tech ) ...
I dont know what to do if anyone can help me, i will be ready to provide my access.

Thanks
Top

zer0890
Posts: 3
Joined: Sun Apr 08, 2018 10:21 am

Os: Debian 8x
Web: apache + nginx
Re: Can't connect to localhost even after updating password into conf file
  • Quote

Post by zer0890 » Fri May 04, 2018 7:33 am

If it can help anyone, i dont know how but maybe root password was updated on my conf file, but not into the DB itself.
I followed this topic

https://www.digitalocean.com/community/ ... t-password

By reseting manually root password with mine and it worked.
Top

sandy
Posts: 90
Joined: Sat Apr 07, 2018 7:06 pm
Contact:
Contact sandy
Website

Os: CentOS 6x
Web: nginx + php-fpm
Re: Can't connect to localhost even after updating password into conf file
  • Quote

Post by sandy » Wed May 09, 2018 5:14 pm

easy guide to reset root password
https://www.mysterydata.com/how-to-rese ... emd-linux/
Top


Post Reply
  • Print view

3 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