2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > 修改mysql密码set password for root@localhost = password

修改mysql密码set password for root@localhost = password

时间:2022-04-27 13:13:56

相关推荐

修改mysql密码set password for root@localhost = password

在安装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';

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。