I installed the Percona toolkit 3.6.0 via Brew and it installed fine. But when I tried to use it, eg. pt-online-schema-change, it does not work because it depends on MySQL client 9.0. The error is this:
Cannot connect to MySQL: DBI connect('test;host=<some_prod_host>;mysql_read_default_group=client','test',...) failed: Authentication plugin 'mysql_native_password' cannot be loaded: dlopen(/opt/homebrew/Cellar/mysql-client/9.0.1/lib/plugin/mysql_native_password.so, 0x0002): tried: '/opt/homebrew/Cellar/mysql-client/9.0.1/lib/plugin/mysql_native_password.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/mysql-client/9.0.1/lib/plugin/mysql_native_password.so' (no such file), '/opt/homebrew/Cellar/mysql-client/9.0.1/lib/plugin/mysql_native_password.so' (no such file) at /opt/homebrew/Cellar/percona-toolkit/3.6.0_2/libexec/bin/pt-online-schema-change line 2345.
- What is the workaround for this?
- How can I install Percona toolkit 3.5.5 via Brew? I can’t seem to find the old formula anymore.
- Is there a way to install Percona toolk 3.6.0 with MySQL client 8.4 instead?
- I prefer not to run an
alter user ... identified by caching_sha2_password
since this is a production db.