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

adding database Error: Connection to localhost failed

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
darkworks
Posts: 21
Joined: Wed Jan 20, 2016 5:10 am
Contact:
Contact darkworks
Website

Os: Debian 7x
Web: apache + nginx
adding database Error: Connection to localhost failed
  • Quote

Post by darkworks » Fri Feb 19, 2016 6:00 am

Hi recently i switched mysql with mariadb on my server running debian 7 wheezy

now when i try to add new database from my vestapanel i get error "Error: Connection to localhost failed"

any idea how to fix this issue

vesta mysql config file have same root password through which i login to phpmyadmin manually and login through shell
/usr/local/vesta/conf/mysql.conf
Top

darkworks
Posts: 21
Joined: Wed Jan 20, 2016 5:10 am
Contact:
Contact darkworks
Website

Os: Debian 7x
Web: apache + nginx
Re: adding database Error: Connection to localhost failed
  • Quote

Post by darkworks » Fri Feb 19, 2016 7:40 pm

problem is with damn sock ::
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")
Top

darkworks
Posts: 21
Joined: Wed Jan 20, 2016 5:10 am
Contact:
Contact darkworks
Website

Os: Debian 7x
Web: apache + nginx
Re: adding database Error: Connection to localhost failed
  • Quote

Post by darkworks » Fri Feb 19, 2016 8:01 pm

solution is to link that damn sock with actual sock file

ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
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