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 'identified by '1234'' at line 1
一、问题描述:
执行下面语句报错,直接复制粘贴网上命令同样报错
grant replication slave on *.* to 'xiaoming'@'%' identified by '1234';
二、解决办法:
为了使密码简单先执行下面两条命令:设置密码的复杂度,为简单类型,密码长度为4。
set global validate_password.policy = 0;
set global validate_password.length = 4;