在安装mysql数据库后,修改密码报错
mysql> set password for root@localhost = password('root');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 'password('123')' at line 1
查询得知,这数据库版本有点新,有些许改变
alter user 'root'@'localhost' identified by 'root';