Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP XC System Software : Release Notes > Chapter 7 System Administration and Management Notes

Cannot Connect to MySQL Database During Configuration

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

At times, especially during the initial configuration or reconfiguration of your system, you might see the following message:

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock 

If you see that message, perform the following steps to restart the database and resolve the problem:

  1. As root on the head node, restart the database:

    # service mysqld restart

    This command may report that it fails to either stop or restart the MySQL processes. If so, continue with the remainder of this procedure.

  2. Enter the following command to find MySQL processes:

    # ps -eaf | grep mysql

    Three processes should be listed: grep, mysqld_safe, and mysqld. If you do not see mysqld_safe and mysqld, proceed to step 4.

  3. Use the process ID (PID) of /usr/libexec/mysqld (the number just after the process owner name) to kill mysqld manually. If the mysqld process is not listed, but there is a mysqld_safe process, use that PID instead.

    # kill mysqld_PID

    This process should kill both mysqld and mysqld_safe.

  4. Restart the mysqld service:

    # service mysqld start

    The command you were trying to run should now be able to connect to the database.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2003–2007 Hewlett-Packard Development Company, L.P.