mysql> update mysql.user set authentication_string=password(317200
) where user=root
and Host = localhost
;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(317200
) where user=root
and Host = localhost
' at line 1
用错符号了,应该是单引号',而不是`
update mysql.user set authentication_string=password(317200) where user='test' and Host = 'localhost';