When trying to connect to a MySQL 8.0.16 database where the user is using SHA256 Authentication I receive the following error in both CLI and MySQL Workbench.
ERROR 1045 (28000): Plugin caching_sha2_password could not be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
Upon investigation is seems to be because we are using MariaDB “under the hood”.
$ mysql --version
mysql Ver 15.1 Distrib 10.8.3-MariaDB, for Linux (x86_64) using EditLine wrapper
It appears that libmysqlclient provided by MariaDB does not support SHA256 Authentication.
I can connect fine using DBeaver CE (installed via Flatpak), however my work requires some features from Workbench, so I do need to use that from time-to-time.
In the interim I have set the user back to using mysql_native_password but this is not the ideal scenario.
Any thoughts or suggestions on how to move forward with this?
Thanks.