您现在的位置是:首页>数据库>Mysql与MariaDBMysql与MariaDB
mysql 5.7 报错ERROR 1054(42S22) Unknown column 'password' in ‘field list’
刘海林2021-07-11【Mysql与MariaDB】1067人已围观
简介mysql 5.7 报错ERROR 1054(42S22) Unknown column 'password' in ‘field list’
mysql5.7 修改密码
update user set password=password(“123456”) where user=”root”;
报错
ERROR 1054(42S22) Unknown column 'password' in ‘field list’
原因:
5.7版本的mysql数据库下已经没有password这个字段了,password字段改成了authentication_string,只需要将上面的password字段更换成authentication_string即可
update user set authentication_string=password(“123456”) where user=”root”;
flush privileges;
相关文章
点击排行
- centos8 编译安装mysql 5.7 提示 Package ‘libtirpc‘, required by ‘virtual:world‘, not found 解决方法
- Linking C static library ../../archive_output_directory/libz.a
- buf0buf.cc:1221:44: error: ‘SYS_gettid’ was not declared in this scope
- mysql8.0编译安装 GCC 5.3 or newer is required (-dumpversion says 4.8.5)错误
- c++: error: unrecognized command line option ‘-std=c++14’
- mysql 8.0 主从(Master-Slave)配置教程
- centos8 编译安装mysql发生Could not find rpcgen错误处理方法
- MySQL命令行神器:mycli安装
标签云
猜你喜欢
- LVM逻辑卷删除 SWAP 分区操作
- nexus安装完后访问慢并报错org.apache.http.conn.HttpHostConnectException: Connect to sonatype-download.global.ssl.fastly.net
- 获取磁盘分区UUID的方法
- Jenkins 第一次初始化安装 插件慢的解决方法
- Fontconfig head is null, check your fonts or fonts configuration
- Master High Availability的 GTID failover mode = 0
- Mysql8的MHA高可用搭建
- Centos的Systemd服务管理
- CygWin、MingW、MSYS之间的关系
- centos7 删除 virbr0网卡