Hi Community,
My company asked me to update to mysql 8 and accordingly to percona xtrabackup 8.
To the environment:
I use the debian:buster Docker Container and install Xtrabackup 8.0.9-1 via dpkg
For backward compatibility reasons I would like to offer native authentication as well. The MySQL server has the following setting:
mysql> show global variables like 'default_authentication_plugin';
+-------------------------------+-----------------------+
| Variable_name | Value |
+-------------------------------+-----------------------+
| default_authentication_plugin | mysql_native_password
+-------------------------------+-----------------------+
1 row in set (0.00 sec)
When I run xtrabackup, I get the following error:
Failed to connect to MySQL server: DBI connect(';mysql_read_default_group=xtrabackup;host=db','root',...) failed: Plugin caching_sha2_password could not be loaded: /usr/lib/x86_64-linux-gnu/mariadb19/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory at - line 1536.
But when I run a mysql client, I can connect without problems. I have extended my.cnf and xtrabackup --print-defaults tells me the following:
root@092f323f7741:/# xtrabackup --print-defaults
xtrabackup would have been started with the following arguments:
--default-authentication-plugin=mysql_native_password --default-authentication-plugin=mysql_native_password --default-authentication-plugin=mysql_native_password
Nevertheless xtrabackup 8 does not use the native way. What am I doing wrong?
Thanks for help
Dennis