Details
-
Bug
-
Status: Closed (View Workflow)
-
Trivial
-
Resolution: Fixed
-
10.0.0, 5.5.28a, 5.3.11
-
None
-
5.5, windows xp
Description
1) I invoke mysql with an ampty -p parameter
2) I write the password, but I DONT press enter
3) I press ctrl-c
4) I'm logged in, as if I pressed enter
This does not happen always - it depends how I invoke mysql. However, using the default Icon in the Win's start menu, this happens.
Example:
C:\Programmi\MariaDB 5.5\bin>mysql "--defaults-file=C:\Programmi\MariaDB 5.5\dat
a\my.ini" -uroot -p
Enter password: *****
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 7
Server version: 5.5.25-MariaDB mariadb.org binary distribution
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
Hi Sergei,
While the described problem doesn't sound like a big deal, I just found out that I don't know any way out of the "Enter password" line once I pressed enter in mysql ... -p command line – neither on Windows nor on Linux. On Windows Ctrl-C works like 'Enter' (as Federico described), on Linux it's simply ignored; all the same, to quit it you have to send a request to the server which might be not what you want. So, before sending this report as a Windows oddity to Wlad, I wanted to check whether you have any comments or opinion on the matter.
(note: probably affects previous versions too, but I didn't check 5.1 or 5.2).