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!

Error DBI Connect

Discussion in 'Database Discussion' started by gestinfo, Feb 12, 2012.

  1. gestinfo

    gestinfo Member

    Jun 26, 2011
    Likes Received:
    Trophy Points:
    i will receive message from my server ,, and i dont know what i need to do ? ..

    First Message.:

    Head.: Cron <root@node> /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache

    Message .: DBI connect('mysql:localhost','root',...) failed: Lost connection to MySQL server at 'reading initial communication packet', system error: 104 at /usr/local/cpanel/scripts/update_db_cache line 67 Can't call method "prepare" on an undefined value at /usr/local/cpanel/scripts/update_db_cache line 68.

    Second message
    header.: Cron <root@node> /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache

    Message .: DBI connect('mysql:localhost','root',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/cpanel/scripts/update_db_cache line 67 Can't call method "prepare" on an undefined value at /usr/local/cpanel/scripts/update_db_cache line 68.

    some people help to me ,,,

    Thanks ,,
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello gestinfo,

    In root SSH, can you connect to MySQL in command line with this command:

    If you cannot connect, try resetting the root MySQL password in WHM to see the results in WHM > SQL Services > MySQL Root Password area. If you receive any error message there, please post it here.

    If the password reset doesn't work for root MySQL user to gain access to command line for MySQL using "mysql" in root SSH, please let us know.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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