您现在的位置是:首页>数据库>Mysql与MariaDBMysql与MariaDB

mysql 5.7 报错ERROR 1054(42S22) Unknown column 'password' in ‘field list’

刘海林2021-07-11Mysql与MariaDB1067人已围观

简介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;

相关文章

    7X24小时运维托管服务
    电商网站托管、企业网站托管

站点信息

  • 建站时间:2020-1-1
  • 网站程序:SsysCMS
  • 文章作者:刘海林
  • 承接业务:运维,SEM,软件定制
  • 网站统计百度统计
  • 服务器提供商重庆海林网络建站
  • 联系微信:扫码与我交流