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!
  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 MYSQL Server via socket

Discussion in 'Database Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,372
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

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

    Thank you.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,372
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
Loading...

Share This Page