1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

metabase + mysqlでRSA public key is not available client side

Last updated at Posted at 2021-06-10

version v0.39.3

metabaseでmysqlを使おうとすると以下のエラーが出る場合がある。

java.sql.SQLException: Could not connect to address=(host=metabase-db)(port=3306)(type=master) : RSA public key is not available client side (option serverRsaPublicKeyFile not set)
	at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:262)
	at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1241)

原因と解決策は以下のとおり。

上記にあるとおり環境に応じてjdbc-urlを修正する。ローカル環境などとりあえず接続出来れば良いだけなら「追加のJDBC接続文字列オプション」にallowPublicKeyRetrieval=trueを追加すればよい。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?