MySQL 5.7.16 修改密码提示 ERROR 1054 (42S22): Unknown column ''password'' in ''field list''的原因
作者:灰太狼_1991 时间:2024-01-20 02:43:33
按照网上之前版本的操作,将my.ini中的skip-grant-tables注释去掉,然后在命令行中以mysql -u root -p可以直接进入,但是执行
mysql> update mysql.user set password=password('password') where user='root';
会出现以下错误
mysql> ERROR 1054 (42S22): Unknown column 'password' in 'field list'
错误原因:mysql数据库下已经没有password这个字段了,password字段改成了authentication_string。
mysql> update mysql.user set authentication_string=PASSWORD('password') where Use
r='root';
Query OK, 1 row affected, 1 warning (0.15 sec)
Rows matched: 1 Changed: 1 Warnings: 1
之后,记得注释掉my.ini
中的skip-grant-tables
。
最后,操作完后重新启动mysql服务,便可以用之前设置好的密码登录了。
以上所述是小编给大家介绍的MySQL 5.7.16 修改密码提示 ERROR 1054 (42S22): Unknown column ''password'' in ''field list''的原因网站的支持!
来源:http://blog.csdn.net/huitailang1991/article/details/54092461
标签:mysql,unknown,column
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
JavaScript模拟实现自由落体效果
2024-05-02 16:19:47
![](https://img.aspxhome.com/file/2023/9/132529_0s.gif)
浅谈Scrapy框架普通反爬虫机制的应对策略
2023-07-14 17:11:40
python turtle 绘制太极图的实例
2022-12-31 13:15:12
![](https://img.aspxhome.com/file/2023/9/72849_0s.jpg)
Python字符串中添加、插入特定字符的方法
2021-05-14 00:16:53
![](https://img.aspxhome.com/file/2023/1/86421_0s.png)
简单谈谈Python中的反转字符串问题
2022-02-24 11:55:07
Python 实现王者荣耀中的敏感词过滤示例
2023-08-14 01:21:04
windows及linux环境下永久修改pip镜像源的方法
2021-02-19 09:08:59
![](https://img.aspxhome.com/file/2023/3/86473_0s.jpg)
利用Python提取PDF文本的简单方法实例
2023-05-09 05:37:34
![](https://img.aspxhome.com/file/2023/9/66409_0s.jpg)
Python匿名函数/排序函数/过滤函数/映射函数/递归/二分法
2022-03-10 21:04:56
Python中文件的读取和写入操作
2023-01-08 22:05:52
asp开发中textarea常见问题
2008-04-13 06:34:00
Python走楼梯问题解决方法示例
2021-07-07 22:57:51
Python报错SyntaxError:unexpected EOF while parsing的解决办法
2023-10-01 10:29:54
javascript数组去重方法总结(推荐)
2024-04-17 10:31:22
python为什么会环境变量设置不成功
2023-01-18 04:33:08
![](https://img.aspxhome.com/file/2023/7/113127_0s.jpg)
MySQL高效导入多个.sql文件方法详解
2024-01-20 19:10:44
SQL语句练习实例之五 WMS系统中的关于LIFO或FIFO的问题分析
2024-01-16 06:47:26
Apple在Safari 4中抛弃品牌视觉设计
2009-02-26 13:05:00
![](https://img.aspxhome.com/file/UploadPic/20092/26/safari_4-60s.png)
Python Flask实现图片验证码与邮箱验证码流程详细讲解
2021-10-19 06:35:29
![](https://img.aspxhome.com/file/2023/1/92131_0s.png)
SQL的substring_index()用法实例(MySQL字符串截取)
2024-01-27 19:30:19