MariaDB latest update problem after upgrading to mariadb 10.1

Ahmed Hany

Member
Apr 8, 2016
16
0
1
Egypt
cPanel Access Level
Root Administrator
Hi ,

I've a problem, ater upgrading from mariadb 10.0 to the latest version some of websites on the server doesn't work and gives this error

" Error establishing a database connection "

This error appears in many websites running on the server and i don't know what i should do to fix this?
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Error establishing a database connection
You are getting this error because websites unable to establish a database connection or database has been corrupted.
1) Please make sure MySQL service is running on the server.
2) Please check MySQL error logs while getting this error.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

Could you let us know the recent output to /var/lib/mysql/$hostname.err? You can use a command such as:

Code:
tail -300 /var/lib/mysql/$hostname.err
Replace "$hostname" with your server's hostname.

Thank you.