| Bug #55270 | Can perform all of Workbench Tutorial except cannot access Command Line Client | ||
|---|---|---|---|
| Submitted: | 14 Jul 2010 20:18 | Modified: | 16 Aug 2010 4:41 |
| Reporter: | David Rogers | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL Server: Command-line Clients | Severity: | S2 (Serious) |
| Version: | 5.1.48-win32,Workbench -gpl-5.2.25-win32 | OS: | Windows (Vista Ultimate) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | password | ||
[14 Jul 2010 20:18]
David Rogers
[14 Jul 2010 20:23]
David Rogers
Tests that I ran
Attachment: Test Matrix for MySQL Installation.docx (application/vnd.openxmlformats-officedocument.wordprocessingml.document, text), 28.39 KiB.
[14 Jul 2010 20:31]
David Rogers
configuration file built via mysql-essential-5.1.48-win32
Attachment: my.ini (application/octet-stream, text), 8.74 KiB.
[14 Jul 2010 20:38]
David Rogers
I put the GRANT statement in file C:\Program Files\MySQL\MySQL Server 5.1\my.ini Tested it this AM. – did not like it, so deleted the line. The configuration file I forwarded does not include that line - that was the ONLY change made to my.ini.
[15 Jul 2010 4:39]
Valeriy Kravchuk
Please, send the exact command line you had used, like this: mysql -uroot -pDavid1 test
[16 Jul 2010 2:53]
David Rogers
Valeriy Kravchuk requested "Please, send the exact command line you had used, like this: mysql -uroot -pDavid1 test" Veleriy: Test 1: In the Command Prompt, which - when it comes up - has heading "Administrator: Command Prompt" its first line is “Microsoft Windows [Version 6.0.6002]”, second line is “Copyright …”, and third line is “C:\Users|David>”. Then I put in "mysql -u root -p David1 test" and it responds with many, many lines, first one being "mysql Ver 14.14 Distrib 5.1.48, for Win32 <ia32>". Its last line is the prompt “C:\Users|David>”. I assume success. Test 2: If I call up the Command Prompt, which - when it comes up has heading - "Administrator: Command Prompt" I put in "mysql -u root -p David1" it responds with "Enter password:"; I enter "David1" and it returns "ERROR 1045 <28000>: Access denied for user 'junk!'@'localhost' <using password: YES>". The foregoing 'junk!" is my way of expressing odd characters. Then next line is prompt "C:\Users|David>" waiting for me. Test 3: If I call up the MySQL Command Line Client (which has as header "C:\Program Files\MySql\MySQL Server 5.1\bin\mysql.exe", it immediately asks "Enter password:". When I enter "David1" it flashes an error line that begins "Error 1045 ...", probably like the above ERROR 1045. NOTE: ALL THE FOLLOWING TESTS WERE DONE IN THE Command Prompt, which - when it comes up has heading - "Administrator: Command Prompt". Test 4: A friend suggested that I enter “mysql –u root –h 127.0.0.1 -p”. So, I called up the Command Prompt and I entered “mysql –u root –h 127.0.0.1 –p”. It gave the same results as in Test 1 above. (success). So I tried “mysql –u root –h 127.0.0.1”; same results as in Test 1 above. Test 5: I called up the Command Prompt and I gave it “mysql test” – it responds with ERROR 1045 and prompt “C:\Users\David>”. Test 6: I called up the Command Prompt and I gave it “mysql -p David1 test” (without the “-u root”) and it responds as in Test 1 above (success). I note that the socket it lists is “mysql”. Test 7: Called up the Command Prompt, entered “mysql –p David1 MySQL”. It also yielded same results as in Test 1 above. Test 8: Called up the Command Prompt, entered “’mysql –p David1 junk”. It also yielded same results as in Test 1 above. Test 9: Called up the Command Prompt, entered “mysql --help”. It also yielded same results as in Test 1 above. CONCLUSION: There are not enough constraints on the command line monitor in the Command Prompt. (Or is it meant to be this way?) Also, something is wrong with the MySQL Command Line Client, for it will not accept a password.
[16 Jul 2010 4:41]
Valeriy Kravchuk
Normal result of mysql command line execution is "mysql>" command prompt, like this (sorry, not on Windows at the moment, but it does not matter): valeriy-kravchuks-macbook-pro:5.1 openxs$ bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.1.49-debug Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. 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. mysql> Had you tried NOT to put space between option, -u or -p, and username/password? Like this: mysql -uroot -pDavid1 test
[16 Aug 2010 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
