mysql> use mysql;Database changedmysql> update user set password=password(‘123456‘) where user=‘root‘;ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘mysql>
晚上被这个问题折腾了好久,最后发现window下这个版本的mysql密码列是authentication_string,所以正确的写法是:
mysql>update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘ and Host =‘localhost‘;
问题解决
时间: 2024-12-23 20:49:25