Bug #90437 | mysqlsh caching_sha2_password authentication failing on centos | ||
---|---|---|---|
Submitted: | 14 Apr 2018 0:10 | Modified: | 9 Aug 2018 17:24 |
Reporter: | Kenny Gryp | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | Shell AdminAPI InnoDB Cluster / ReplicaSet | Severity: | S3 (Non-critical) |
Version: | mysql-server-8.0.4 & mysql-shell-1.0.11 | OS: | CentOS (7) |
Assigned to: | CPU Architecture: | x86 |
[14 Apr 2018 0:10]
Kenny Gryp
[14 Apr 2018 1:54]
Kenny Gryp
.
[16 Apr 2018 5:52]
MySQL Verification Team
Hello Kenny, Thank you for the report! Thanks, Umesh
[16 Apr 2018 5:59]
MySQL Verification Team
# Seen when mysqlsh session tries to connect(mysql port or mysqlx port) MySQL Server 8.0.4 and above. Tried with --auth-method but still same issue. mysql-js> \c root@localhost:3333 Creating a Session to 'root@localhost:3333' Enter password: ERROR: 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory mysql-js> \c root@localhost:33060 Creating a Session to 'root@localhost:33060' Enter password: ERROR: 1045: Invalid user or password mysql-js> \q Bye! Workaround - User created with mysql_native_password able to connect 8.0.4. -- cli mysql> CREATE USER 'bug'@'localhost' IDENTIFIED WITH mysql_native_password BY '123'; Query OK, 0 rows affected (0.00 sec) mysql> grant all on *.* to 'bug'@'localhost'; Query OK, 0 rows affected (0.00 sec) -- shell mysql-js> \c bug@localhost:3333 Creating a Session to 'bug@localhost:3333' Enter password: Your MySQL connection id is 16 Server version: 8.0.4-rc-log MySQL Community Server (GPL) No default schema selected; type \use <schema> to set one. mysql-js> mysql-js> \c bug@localhost:33060 Creating a Session to 'bug@localhost:33060' Enter password: Closing old connection... Your MySQL connection id is 17 (X protocol) Server version: 8.0.4-rc-log MySQL Community Server (GPL) No default schema selected; type \use <schema> to set one.
[9 Aug 2018 17:24]
Krzysztof Grzadziel
Posted by developer: MySQL Shell 1.0.11 is no longer supported. Support for caching_sha2_password is available in MySQL Shell 8.0. Please upgrade your MySQL Shell to 8.0.12. MySQL Server upgrade is recommended as well.