[MDEV-4330] mysql command line password option failing Created: 2013-03-26  Updated: 2013-03-26  Resolved: 2013-03-26

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.30
Fix Version/s: 5.5.31

Type: Bug Priority: Major
Reporter: Chris Daley Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None
Environment:

5.5.30, Windows 7



 Description   

mysql.exe option to request password on execution no longer working under 5.3.30.

Observed behavior:

C:\Web\db>mysql.exe -u root -p < dbdata.sql
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
(no pause at Enter Password: and command fails)

Expected behavior (true thru 5.5.29):

C:\Web\db>mysql.exe -u root -p < dbdata.sql
Enter password: ******** (pauses, allowing password entry)
(command processes .sql file)

mysql.exe command fails unless noting after -p or include password (-pPASSWORD).

May be related to ctrl-c password field change introduced in 5.3.30 (see MDEV-4021 & Revision #3665).



 Comments   
Comment by Vladislav Vaintroub [ 2013-03-26 ]

It is related to that MDEV-4021 change, and it does not work , but only if input redirection is used.
I fixed in the latest 5.5, will be in 5.5.31

Generated at Thu Feb 08 06:55:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.