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!

Can't connect to MYSQL Server via socket

Discussion in 'Database Discussion' started by samend, Feb 6, 2015.

  1. samend

    samend Member

    Joined:
    Dec 15, 2014
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Community,

    today i have found out, that i can not perform any connections to the mysql_Server via the "localhost" the mysql-Server does only accept connections on 127.0.0.1. What can i do to resolve this problem?

    The mysql Server is running and i can connect to phpmyadmin via cPanel GUI, but when i start to install Wordpress or contao on an cPanel Account i can only establish a mysql connection via the TCP/IP 127.0.0.1 localhost don't works.
     
    #1 samend, Feb 6, 2015
    Last edited: Feb 6, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Could you let us know the contents of your /etc/my.cnf file?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. samend

    samend Member

    Joined:
    Dec 15, 2014
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This is the content of my /etc/my.cnf file

    [mysqld]
    default-storage-engine=MyISAM
    innodb_file_per_table=1
    max_allowed_packet=268435456
    open_files_limit=10000



    The MySQL Error logfile don't display any error when i try to connect with the socket and i can configure phpmyadmin to use the UNIX-Socket successfully
     
    #3 samend, Feb 9, 2015
    Last edited: Feb 9, 2015
  4. samend

    samend Member

    Joined:
    Dec 15, 2014
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    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