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

    Default MySQL wont start in whm

    MySQL wont start in whm. It gives me an error about a .sock file not existing in /etc/
    Code:
    -- I have recently ran this:
    
    [root@chicago:/] ./scripts/mysqlup
    MySQL Setup Script Version 6.1
    This is the MySQL installer for OS FreeBSD
    Package index download failed!
    Package index download failed!
    
    Waiting for MySQL to restart ...
    This script updates all the mysql privilege tables to be usable by
    MySQL 4.0 and above.
    
    This is needed if you want to use the new GRANT functions,
    CREATE AGGREGATE FUNCTION, stored procedures, or
    more secure passwords in 4.1
    
    Got a failure from command:
    cat /usr/local/share/mysql/mysql_fix_privilege_tables.sql | /usr/local/bin/mysql --no-defaults --force --user=root --host=localhost --database=mysql
    Please check the above output and try again.
    
    Running the script with the --verbose option may give you some information
    of what went wrong.
    
    If you get an 'Access denied' error, you should run this script again and
    give the MySQL root user password as an argument with the --password= option
    Waiting for mysql to restart..............finished.
    
    
    /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").
    Install Complete
    [root@chicago:/]


    Please help me

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    159

    Default

    cd /var/tmp/
    ln -fs /var/lib/mysql/mysql.sock /var/tmp/mysql.sock

    than restart mysql also generally
    /scripts/restartsrv mysql fix those errors about sockets. etc.

Similar Threads & Tags
Similar threads

  1. HELP! - WHM wont start - 500 error with disk quota exceeded message
    By doulos61 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-18-2011, 07:44 PM
  2. apache just wont start :(
    By bhanuprasad1981 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-22-2010, 09:27 PM
  3. spamd wont start
    By Vectr0n in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-29-2006, 12:18 AM
  4. apache wont start
    By kib in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-04-2005, 10:49 PM
  5. apache wont start
    By netnameus in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 04-01-2005, 01:13 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube