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.

MySQL.sock FreeBSD symlink

Discussion in 'General Discussion' started by xynta, Jan 28, 2006.

  1. xynta

    xynta Member

    Joined:
    Jul 24, 2005
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    That's my problem:

    /usr/local/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").

    I know there are many topics on this forum on how to fix this, but i can't create a symlink because i'm using FreeBSD. Does anyone know how to create a symlink on FreeBSD?

    Thanks in advance.
     
  2. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Well creating a symlink on FreeBSD is same as on other Linux flavours :

    cd /tmp
    ln -s /path/to/mysql.sock mysql.sock

    Also please make sure that you /tmp has permission 1777 if not then just give
    chmod 1777 /tmp
     
Loading...

Share This Page