RDS ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'

0

I set up my database 4 days ago, I realised something wrong with database when I tried to connect it via my local computer. It wasn't connecting and giving error for no reason. So I looked to the error logs and saw this error:

" [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' "

It was fine until last night and all of a sudden today, even though I didnt changed anything I get this error. It looks like this error doesnt effect the working of my database but like I said I cant connect to the database in my mysql workbench because of this error also with this speed, logs are going to create huge amount of data that will impact on database performance. I also looked if anyone had this issue there are plenty but there was no solution.

pippen
已提問 1 個月前檢視次數 355 次
2 個答案
3
已接受的答案

Actually I find out better solution then those two. For people who have the same issue follow this steps:

1- Open your rds instance page

2- Click "Actions" button at the top right.

3- Click "Set up ec2 connection"

4- Create your database - ec2 connection by following the steps that is showed up when you clicked

5- Connect to the instance that is connected with your database

6- If you are using linux as ec2 instance write this command,

mysql -h <DBendpoint> -P <DBport> -u <username> -p

7- after executing this command mysql should be opened, run this query,

ALTER USER 'your_username'@'%' IDENTIFIED WITH caching_sha2_password BY 'your_new_password';

After this steps all of my problems I just mentioned solved.

pippen
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
profile picture
專家
已審閱 1 個月前
2

⚡ This article might help you resolve the error MySQL 8.0.34 Upgrade and tons of MY-013360 ‘mysql_native_password’ is deprecated warnings. A similar issue was addressed three months ago in this repost.aws article: Getting rid of warning: plugin mysql_native_password reported 'mysql_native_password is deprecated'.

profile picture
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南