强的网站建设公司排名,智慧团建网站入口官网,网站开发环境写什么,qq电脑版登录入口新安装的MySQL5.7#xff0c;登录时提示密码错误#xff0c;安装的时候并没有更改密码#xff0c;后来通过免密码登录的方式更改密码#xff0c;输入update mysql.user set passwordpassword(root) where userroot时提示ERROR 1054 (42S22): Unknown column password in f…新安装的MySQL5.7登录时提示密码错误安装的时候并没有更改密码后来通过免密码登录的方式更改密码输入update mysql.user set passwordpassword(root) where userroot时提示ERROR 1054 (42S22): Unknown column password in field list原来是mysql数据库下已经没有password这个字段了password字段改成了authentication_string所以更改语句替换为update MySQL.user set authentication_stringpassword(root) where userroot ;即可完整的更改MySQL密码的方式如下1、vim /etc/my.cnf 加入skip-grant-tables2、重启MySQL /etc/init.d/mysqld restart3、终端输入 mysql 直接登录MySQL数据库然后use mysql4、update mysql.user set authentication_stringpassword(root) where userroot ;mysql5.7更改密码应该采用命令ALTER USER rootlocalhostIDENTIFIED BY ********其中密码的命名规则有所改变详见5、编辑my.cnf文件删掉skip-grant-tables 这一行然后重启MySQL/etc/init.d/mysqld restart否则MySQL仍能免密码登录6、mysql -u root - 然后输入密码即可登录MySQL数据库