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 MySQL localhost (how to)

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
11 posts
  • Previous
  • 1
  • 2
josephpereira10
Posts: 1
Joined: Mon Jan 14, 2019 1:08 pm

Os: CentOS 5x
Web: apache + nginx
Re: MySQL: DATABASE ERROR: CONNECTION FAILED!
  • Quote

Post by josephpereira10 » Mon Jan 14, 2019 1:28 pm

Hello
this error is very easy to solve, open your panel vestacp, and server, go in mysqld, configure, and advanced options,
and in the second line below [mysqld] add this code, skip-grant-tables
done that it will return to normal access to all the DBs, and but remember to remove the code again, because all the DBs of the users were visible to all.

Code: Select all

skip-grant-tables

Code: Select all

[mysqld]
skip-grant-tables
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0

skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 16M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
Top


Post Reply
  • Print view

11 posts
  • Previous
  • 1
  • 2

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