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.