Bug #18471 error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock'

Submitted: 23 Mar 2006 20:31 Modified: 23 Mar 2006 21:46
Reporter: Aquila Chaves Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0 OS:Linux (Linux Fedora)
Assigned to: CPU Architecture:Any

[23 Mar 2006 20:31] Aquila Chaves
Description:
 - Give the command "mysqld_safe":
[root@panthro mysql]# bin/mysqld_safe --user=mysql &
[1] 7298
[root@panthro mysql]# Starting mysqld daemon with databases from /var/lib/mysql
{processing... the cursor is blinking but I don't have any answer... So, I press <ENTER>]
[root@panthro mysql]#

 - The log message is:
060323 16:51:11  mysqld started
060323 16:51:11  InnoDB: Started; log sequence number 0 43655
060323 16:51:11 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.0.19-standard'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Edition - Standard (GPL)

 - Aparently it's OK. But when I execute the command below occurs the following error:
[root@panthro mysql]# bin/mysqladmin version
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!

 - In the log file, there isn't any new message. No Log Message was generated.

 - Now, I kill the process and tried another command (I don't execute the inicial command “bin/mysqld_safe –user=mysql &”). But I have the same answer:
[root@panthro mysql]# bin/mysqladmin variables
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!

 - No log message was generated.
 - Maybe, I have change the port that MySQL is operating. Or the command "bin/mysqld_safe --user=mysql &" is not really starting the DB.

Thank's

How to repeat:
Just Repeat the same steps I did.

Suggested fix:
Maybe, I have change the port that MySQL is operating. Or the command "bin/mysqld_safe --user=mysql &" is not really starting the DB.
[23 Mar 2006 21:46] Hartmut Holzgraefe
We're sorry, but the bug system is not the appropriate forum for 
asking help on using MySQL products. Your problem is not the result 
of a bug.

Support on using our products is available both free in our forums
at http://forums.mysql.com and for a reasonable fee direct from our
skilled support engineers at http://www.mysql.com/support/

Thank you for your interest in MySQL.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.