Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
mysql> 更新 mysql.user 设置密码=密码<'legend'> where user='root'; ERROR 1064 (42000):您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行的 'where user='root'' 附近使用正确的语法
试试下面
UPDATE mysql.user SET Password=PASSWORD('legend') WHERE User='root';