标签:
shell>vi /etc/my.cnf
在[mysqld]下面加入
skip-grant-tables
然后按ESC键输入:wq回车
shell>service mysqld restart
如果出现这个问题
mysql>set password=password(‘123456aaa’); ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
设置安全级别
mysql>set global validate_password_policy=0;
设置密码长度
mysql>set global validate_password_length=4;
然后在设置密码
mysql>set password=password(‘123456aaa’);
标签: