#541 closed defect (fixed)
Shutdown command needs --password= parameter?
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | BOOK | Version: | ~CVS |
| Severity: | medium | Keywords: | |
| Cc: |
Description
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?
Change History (2)
comment:1 by , 23 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 13 years ago
| Milestone: | old |
|---|

Milestone old deleted