Expected behavior:
tsh db connect should succeed with mysql
Current behavior:
$ mysql --user teleport-admin --port 8888 --host localhost --protocol TCP
ERROR 2059 (HY000): 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)
Expected behavior:
tsh db connect
should succeed withmysql
Current behavior:
Bug details:
This is an upstream issue tracked here: https://github.com/Homebrew/homebrew-core/issues/180498
Downgrade 8.4 works fine. (
brew install mysql-client@8.4
)However we should investigate MySQL version 9 in general and move away from native password auth: https://github.com/gravitational/teleport/blob/d489930f6ae798013289270726ffef78e1831ec4/lib/srv/db/mysql/proxy.go#L174-L180