Have created user in MySQL server using the below query.
CREATE USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
When I query the list of users, I can see that, this new user is having plugin as mysql_native_password. But not sure why Grafana is still showing that error message.
Have created user in MySQL server using the below query.
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
When I query the list of users, I can see that, this new user is having plugin as caching_sha2_password . But not sure why Grafana is still showing that error message.
I suggest filing an issue on the github repository. Then you should get an official response.
[Edit] But you should probably check with the latest Grafana first. The developers are unlikely to do anything if it does work with the latest release.
We have an open issue for support MySQL caching_sha2_password for Grafana backend database specifically, see my comment on that issue. But for MySQL datasource the allowNativePasswords=true is set in connectionstring since Grafana v5.0.