Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

MariaDB latest update problem after upgrading to mariadb 10.1

Discussion in 'Database Discussion' started by Ahmed Hany, Oct 29, 2016.

Tags:
  1. Ahmed Hany

    Ahmed Hany Member

    Joined:
    Apr 8, 2016
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,704
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice