I am having a database connection error

3 posts / 0 new
Last post
#1 Tue, 11/19/2019 - 14:05
innovativeflare's picture

I am having a database connection error

Every 3 or 4 days MySQL server stops running and I have to restart it.

I found this error: DBI connect failed : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Not sure how to go about fixing this.

Wed, 11/20/2019 - 14:34

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin


Thu, 11/21/2019 - 20:06

Check your mysql error log for the exact problem. Try in /var/log or check your /etc/my.cnf.

Topic locked