Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsh db connect fails with mysql client version 9 #45962

Open
greedy52 opened this issue Aug 28, 2024 · 1 comment
Open

tsh db connect fails with mysql client version 9 #45962

greedy52 opened this issue Aug 28, 2024 · 1 comment
Labels
bug database-access Database access related issues and PRs db/mysql MySQL related database access issues

Comments

@greedy52
Copy link
Contributor

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)

Bug details:

  • Teleport version: v16

This is an upstream issue tracked here: Homebrew/homebrew-core#180498

Downgrade 8.4 works fine.

However we should investigate MySQL version 9 in general and move away from native password auth:

func (p *Proxy) makeServer(clientConn net.Conn, serverVersion string) *server.Conn {
return server.MakeConn(
clientConn,
server.NewServer(
serverVersion,
mysql.DEFAULT_COLLATION_ID,
mysql.AUTH_NATIVE_PASSWORD,

@greedy52 greedy52 added bug database-access Database access related issues and PRs db/mysql MySQL related database access issues labels Aug 28, 2024
@SMillerDev
Copy link

It is an upstream issue, but it seems nobody actually reported it upstream to MySQL yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug database-access Database access related issues and PRs db/mysql MySQL related database access issues
Projects
None yet
Development

No branches or pull requests

2 participants