mysql 8 You are not allowed to create a user with GRANT

环境:mac + mysql8

适合我的解决方案:

创建用户
CREATE USER 'newuser'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

赋予权限
grant all privileges on * .* to 'newuser'@'localhost';

你可能感兴趣的:(mysql 8 You are not allowed to create a user with GRANT)