| Bug #74417 | Need error-message and document when MySQL CLIs exits with --secure-auth=0 | ||
|---|---|---|---|
| Submitted: | 16 Oct 2014 9:06 | Modified: | 14 Jul 2015 6:53 |
| Reporter: | Tsubasa Tanaka (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
| Version: | 5.7.5, 5.7.6 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | Docs | ||
[16 Oct 2014 9:06]
Tsubasa Tanaka
[16 Oct 2014 10:02]
MySQL Verification Team
Hello Tsubasa, Thank you for the bug report. Thanks, Umesh
[16 Oct 2014 10:03]
MySQL Verification Team
// with 0,1 and 2 options
[root@cluster-repo mysql-advanced-5.7.6]# bin/mysql -u root -p --secure-auth=1
WARNING: --secure-auth is deprecated and will be removed in a future version
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.6-m16-enterprise-commercial-advanced-log MySQL Enterprise Server - Advanced Edition (Commercial)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \q
Bye
[root@cluster-repo mysql-advanced-5.7.6]# bin/mysql -u root -p --secure-auth=2
mysql: [Warning] bin/mysql: ignoring option '--secure-auth' due to invalid value '2'
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.6-m16-enterprise-commercial-advanced-log MySQL Enterprise Server - Advanced Edition (Commercial)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \q
Bye
// for --secure-auth=0
[root@cluster-repo mysql-advanced-5.7.6]# bin/mysql -u root -p --secure-auth=0
WARNING: --secure-auth is deprecated and will be removed in a future version
bin/mysql Ver 14.14 Distrib 5.7.6-m16, for Linux (x86_64) using EditLine wrapper
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Usage: bin/mysql [OPTIONS] [database]
-?, --help Display this help and exit.
-I, --help Synonym for -?
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
(Defaults to on; use --skip-auto-rehash to disable.)
-A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get
table and field completion. This gives a quicker start of
mysql and disables rehashing on reconnect.
--auto-vertical-output
Automatically switch to vertical output mode if the
result is wider than the terminal width.
..
..
[14 Jul 2015 6:53]
Erlend Dahl
Fixed in 5.7.6 under the heading of Bug#19438612 HANDLING OF DEPRECATED --SKIP-SECURE-AUTH OPTION PROBLEMATIC [5 Nov 2014 7:45] Paul Dubois Noted in 5.7.6 changelog. For client programs, --secure-auth is now deprecated and --skip-secure=auth is illegal, but use of --skip-secure-auth resulted in a warning followed by the help message rather than an error.
