Bug #34144 Password error when piping output from mysqldump to mysql CLI in single command
| Submitted: | 29 Jan 2008 19:16 | ||
|---|---|---|---|
| Reporter: | Chris Calender | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: mysqldump Command-line Client | Severity: | S3 (Non-critical) |
| Version: | All | OS: | Windows |
| Assigned to: | Assigned Account | CPU Architecture: | Any |
| Tags: | -p option, access denied, command-line interface, Enter password, password error, redirect | ||
[29 Jan 2008 19:16]
Chris Calender
[29 Jan 2008 19:21]
Chris Calender
Work-around is to add the 'user' and 'password' options under the [mysqldump] section in your my.ini, for example: [mysqldump] user=user_name password=mysqldump_user_password (You may want to create a specific user account just for using mysqldump).
[19 May 2009 1:36]
Jim Winstead
It looks to me like this should be handled okay, as we use _getch() to read the password from the console on Windows. But perhaps the shell redirection confuses this. The relevant code is in get_tty_password() in client/get_password.c.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.051 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.