python3连接Mysql时报错1045 using password : NO
程序员文章站
2022-10-04 16:10:30
首先先确保是否是账号或密码输入错误,可通过CMD登录MYSQL,若确认账号密码无误后,用python连接还是报1045 using password : NO,可做一下修改: 由于mysql8.0和mysql5.7安装不一样, 默认安装是不允许pymysql连接的,要么重装把authenticati ......
首先先确保是否是账号或密码输入错误,可通过CMD登录MYSQL,若确认账号密码无误后,用python连接还是报1045 using password : NO,可做一下修改:
由于mysql8.0和mysql5.7安装不一样, 默认安装是不允许pymysql连接的,要么重装把authentication选项页修改为非默认(没有叹号图片那个);
修改完成后,再次通过CMD登录MYSQL,会发现登录不上,原因是系统自动把root的密码清零,即无密码,可自行修改密码
现在即可用python连接mysql
上一篇: jQuery select三级联动
下一篇: 系统优化怎么做-开篇
推荐阅读
-
Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决
-
Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决
-
Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决方法
-
连接MySQL报错误代码 ERROR 1045时的解决方案
-
python3连接Mysql时报错1045 using password : NO
-
Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决方法
-
Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决
-
Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决
-
Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决方法
-
解决连接mysql报错:ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)