忘记root密码,使用mysqld –skip-grant-tables启动mysql.
当使用grant all privilleges on *.* to 'user'@'%' identified by 'password'时报如题的错误提示。
解决方法:
先执行一下
flush privilleges
就可以了。
忘记root密码,使用mysqld –skip-grant-tables启动mysql.
当使用grant all privilleges on *.* to 'user'@'%' identified by 'password'时报如题的错误提示。
解决方法:
先执行一下
flush privilleges
就可以了。