2019-05-28-Qt+Mysql大坑

2019-05-28-Qt+Mysql大坑

bs写你马呢,复杂死了

无奈用回qt

半天mysql连接不上

mysql 无法连接 Unable to load authentication plugin ‘caching_sha2_password’.

又是百度谷歌的,拷贝文件
https://github.com/Mashpy/Qt-MySQL-Driver-For-Windows

https://blog.csdn.net/m0_37619183/article/details/81873465

输入 use mysql 和 select user,host,plugin,authentication_string from user;

alter user ‘root’ @’localhost’ identified with mysql_native_password by ‘admin’;

nmsl,这回连上了

image.png