赞
踩
查了网上的方法,有两种:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD("your password");
和
update user set password=PASSWORD("your password") where User='root';
发现均在password函数附近报错
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...
查看文档后发现PASSWORD函数已经被删除(原文),新的方法是
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'your passwd';
返回Query OK
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。