﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
541	Shutdown command needs --password= parameter?	lfsbill@…	blfs-book@…	"CVS 2003-12-23 (pulled 2003-12-29, 08:40 EST), Chapter 24, mysql 4.0.16, all
seems to work well until the following command from the book is issued.
Command and results shown.

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!
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!

This was scripted, so I started an interactive shell to investigate. From term:

  # mysqladmin shutdown
  mysqladmin: connect to server at 'localhost' failed
  error: 'Access denied for user: 'root@localhost' (Using password: NO)'
  #

The following command worked:

  # mysqladmin --password=mysql shutdown

I was running as root and had set my password to 'mysql' (not what it really is
now). I presume that during testing of the commands for the book, the password
was not set, thus allowing the shutdown to succeed?"	defect	closed	high		BOOK	~CVS	medium	fixed		
