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!

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:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: 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:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. DigitalSurgeon

    DigitalSurgeon Well-Known Member

    Joined:
    Aug 13, 2005
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    166
    Use -h 127.0.0.1 while connecting to the MySQL.It will work fine.
     
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