Getting rid of warning: "Plugin mysql_native_password reported: ''mysql_native_password' is deprecated..."

2

I recently migrated from mysql 5.7 to mysql 8. In my error log, I see a constant stream of lines like:

2024-01-16T19:20:00.890049Z 16491 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'

All my user accounts have been switched to use 'caching_sha2_password"

The only accounts using mysql_native_password are:

rdsrepladmin (likely created when I did a Blue/Green migration with associated replication) mysql.sys

As far as I know, I have no way to change those two system generated accounts.

How can I get rid of those error messages, either by fixing the underlying issue or by suppressing the warnings? They make it very hard to scan the logs for other errors (of which there are currently none...)

質問済み 4ヶ月前10981ビュー
3回答
1
承認された回答

Hi,

This is known issue. Looks like AWS is aware of it and is working on it but no ETA provided. There is already a plan in place to have "default_authentication_plugin" modifiable in the future. Please check the answers to this question.

Joseph
回答済み 4ヶ月前
profile pictureAWS
エキスパート
レビュー済み 4ヶ月前
1

I tested locally and simply updating the user worked for me.

ALTER USER 'user'@'%' IDENTIFIED WITH caching_sha2_password BY 'password';

Just be careful when applying this to production.

回答済み 3ヶ月前
  • Hi Bruno, the accounts are system accounts I do not have rights to do ALTER USER on.

0

hello i am facing issue since two months that my DB is taking to much time to Sending to client and it happens randomly any one knows what will be the issue ?

回答済み 3ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ