The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't connect to local MySQL server ...

Discussion in 'Database Discussions' started by JustinCase, Apr 18, 2009.

  1. JustinCase

    JustinCase Registered

    Joined:
    Nov 29, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Im getting the following error for my forums board for a website I am admin over...

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /home/zoom/public_html/forums/db/mysql4.php on line 48

    Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/zoom/public_html/forums/db/mysql4.php on line 330

    Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/zoom/public_html/forums/db/mysql4.php on line 331
    phpBB : Critical Error

    Could not connect to the database


    The mainpage is also "Temp. Unavailable" Also.

    I have no knowledge about most of the cPanel stuff so am not sure if just doing a system reboot would help, or restarting the mysql service, or if that would mess up things worse. Any ideas are appreciated. :)

    Thanks
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You may want to check the following in your script's configuration:

    - servername (typically should be: localhost)
    - database username (typically prefixed with your cPanel username and _)
    - database password
    - database name (always prefixed with your cpanel username and _)
     
Loading...

Share This Page