方法一:修改my.ini,并重启。
https://blog.csdn.net/qq_25086397/article/details/100551123
貌似没用。
但是有人成功了。。。
就在my.ini加了一个:default_authentication_plugin=mysql_native_password
最后检查:
root用户显示mysql_native_password。成功。
http://t.zoukankan.com/whcai-p-14803527.html
方法二:https://blog.csdn.net/weixin_30825199/article/details/102217005
新建root2
CREATE USER 'pig'@'%' IDENTIFIED BY '123456';
https://blog.csdn.net/feritylamb/article/details/124872763
授权:
GRANT ALL ON *.* TO 'pig'@'%';
方法三:
发现是VS插件的错。。版本太低了。。。之前是MySql for Visual Studio 1.2.7
如今改成:
- MySQL Connector Net 6.10.7
- MySql for Visual Studio 1.2.10
就可以用root和原来的登录加密插件方式登录了。
https://blog.csdn.net/yunlin2000/article/details/125503528
1.2.10版本太高了,虽然能登录mysql,但是跟entity framework版本冲突
https://downloads.mysql.com/archives/visualstudio/
https://docs.microsoft.com/zh-cn/ef/ef6/?redirectedfrom=MSDN#should-i-use-ef6-or-ef-core