已有183人关注
安装MySQL后,用管理员命令输入密码出现不安全提示,需要怎么改啊老师!!
发表在Python图书答疑 2022-09-28 悬赏:10 学分 《Python从入门到项目实践》第15章 使用Python操作数据库
是否精华
版块置顶:


C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -ufhszybw27 -pfhszybw27

mysql: [Warning] Using a password on the command line interface can be insecure.

ERROR 1045 (28000): Access denied for user 'fhszybw27'@'localhost' (using password: YES)



分享到:
精彩评论 3
小禾斗
学分:7303 LV13
TA的每日心情
奋斗
2017-04-21 14:00:25
2022-09-29
沙发

依次执行一下这几条命令:


mysql>use mysql;


mysql>select host ,user from user;


mysql> update user set host =’%’ where user=‘root’;


mysql> flushprivileges



玄月星
学分:109 LV3
2022-09-29
板凳

小禾斗 发表于2022-09-29 14:05

依次执行一下这几条命令:


mysql>use mysql;


mysql>select host ,user from user;


mysql> update user set host =’%’ where user=‘root’;


mysql> flushprivileges



C:\WINDOWS\system32>mysql>use mysql

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)


C:\WINDOWS\system32>mysql>select host ,user from user


C:\WINDOWS\system32>mysql> update user set host =’%’ where user=‘root’


C:\WINDOWS\system32>mysql> flushprivileges

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)


小禾斗
学分:7303 LV13
TA的每日心情
奋斗
2017-04-21 14:00:25
2022-10-01
地板

玄月星 发表于2022-09-29 16:52

C:\WINDOWS\system32>mysql>use mysql

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)


C:\WINDOWS\system32>mysql>select host ,user from user


C:\WINDOWS\system32>mysql> update user set host =’%’ where user=‘root’


C:\WINDOWS\system32>mysql> flushprivileges

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)


1、在cmd命令里面用  mysql -u root -p 密码    连接上mysql

2、输入ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '密码';


首页上一页 1 下一页尾页 3 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照