When using the Wodby PHP container and trying to connect to a MySQL 8 container / service using the mysql cli command ( mariadb-client) is it failing due to caching_sha2_password.so library not found. The full error message is:
_wodby@php.container:/var/www/html $ mysql -u php -p -h mysql
Enter password:
ERROR 1045 (28000): Plugin caching_sha2_password could not be loaded: Error loading shared library /usr/lib/mariadb/plugin/caching_sha2password.so: No such file or directory
When using the Wodby PHP container and trying to connect to a MySQL 8 container / service using the mysql cli command ( mariadb-client) is it failing due to caching_sha2_password.so library not found. The full error message is:
_wodby@php.container:/var/www/html $ mysql -u php -p -h mysql Enter password: ERROR 1045 (28000): Plugin caching_sha2_password could not be loaded: Error loading shared library /usr/lib/mariadb/plugin/caching_sha2password.so: No such file or directory
Suggestion: add the MariaDB caching_sha2_password to the container.
The only temporary solution I found is to switch the MySQL 8 container / service to use 'mysql_native_password' as default authentication plugin.