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.

mysqldump work on jailshell?

Discussion in 'General Discussion' started by speckados, Nov 18, 2005.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Scenario:

    User with jailshell can't use mysqldump:
    Code:
    mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
    But on normal shell /bin/bash work fine.

    On /home/virts/USER/etc are a my.cnf whit same content of /etc/my.cnf

    :eek:
     
  2. DigitalSurgeon

    DigitalSurgeon Well-Known Member

    Joined:
    Aug 13, 2005
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Use -h 127.0.0.1 while connecting to the MySQL.It will work fine.
     
Loading...

Share This Page