0
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.

MySQL 8系のレプリケーションでAuthentication requires secure connectionになる問題をとりあえず回避する

Last updated at Posted at 2021-11-24

すべてレプリカ側の記述。
ソース側の記述や操作は一切なし。

show slave status\G;

をすると、 Authentication requires secure connection という注意文が表示される。

これを回避するためには、

CHANGE MASTER TO
    -> MASTER_HOST='master_hostname',
    -> MASTER_USER='replicate',
    -> MASTER_PASSWORD='password',
    -> MASTER_SSL=1;

のようする。
肝は MASTER_SSL=1 を記述すること。
あとはこれまで通り START SLAVE; した後に、SHOW SLAVE STATUS\G; して、 Slave_IO_Running が Yes になっていれば正常に動作しているはず。

詳しいことは公式ドキュメントを読むこと。
https://dev.mysql.com/doc/refman/8.0/ja/replication-solutions-encrypted-connections.html

※キーのやり取りをしていないのでSSL通信が動いている訳ではないとは思うので、個人情報を扱うレプリケーションを行う際はしっかり公式ドキュメントを見て検証してください。詳しいことは知りません。

0
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
0
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?