今天是想设置mysql远程连接数据库,然后去的https://developer.aliyun.com/article/801237这个网址,设置连接权限,到最后自己电脑登不上去mysql

C:\Users\刘志成>mysql -uroot -p123456
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

你要设置对你的电脑IP放开权限
类似

img

你可以参考一下这个帖子试试:
https://blog.csdn.net/weixin_34397224/article/details/90454653?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.pc_relevant_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.pc_relevant_default