Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    3

    Question Some assistance please

    Hello There,

    I am currently stumped on how to fix an error I am receiving on my server. The MySQL seems as it is turned off, but I have restarted it multiple times and receive the same error every time.
    /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").
    Now I need this fixed asap, I have root access.. so can someone help me fix this problem please

    Sorry if I have posted in wrong forum.

    Thanks,
    Adam

  2. #2
    Member
    Join Date
    Nov 2006
    Posts
    101

    Default

    Execute:
    Code:
    pico -w /etc/my.cnf
    Find:
    Code:
    basedir=/var/lib
    Replace with:
    Code:
    #basedir=/var/lib
    Execute:
    Code:
    service mysql restart

    If that doesn't work post the contents of your /etc/my.cnf file

    Edit: This might also help...http://forums.cpanel.net/showthread.php?t=36503

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    3

    Default

    Thanks.. I'm new to all this stuff..

    How do I execute the commands?

    Sorry lol, im a newbie to this

    Thanks,
    Adam

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    101

    Default

    Login to SSH... I'd use PuTTy...
    http://www.putty.nl/latest/x86/putty.exe

  5. #5
    Registered User
    Join Date
    Jan 2007
    Posts
    3

    Default

    I dont want to mess the server up... if I do something wrong, it might ruin the server more

  6. #6
    Member dafut's Avatar
    Join Date
    Dec 2005
    Posts
    75

    Default

    Although cPanel can essentially be run through the GUI, learning simple command line instructions and editing through SSH is, to me, essential.

    A good users guide to Linux-based command line can be found at:
    http://rute.2038bug.com/rute.html.gz

    Chapters 4 and 6 should give you a lot of the info you'll need. As Nhojohl says, get Putty.

    Otherwise, you'll need someone that can edit files and has root access.

    Best to you.

Similar Threads & Tags
Similar threads

  1. Need SSH Assistance
    By macrunning in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-23-2010, 08:38 AM
  2. Remote Assistance
    By bradyb in forum New User Questions
    Replies: 3
    Last Post: 07-23-2007, 10:15 AM
  3. Novice needs assistance
    By OAEMS in forum New User Questions
    Replies: 1
    Last Post: 05-12-2007, 10:37 AM
  4. Need some assistance
    By jmc67 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-20-2003, 12:47 PM
  5. Assistance
    By vinous in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-17-2002, 11:12 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube