If you have some issue on MySQL 8 database:
CREATE USER 'user'@'localhost' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON user.* TO 'user'@'localhost' WITH GRANT OPTION;
If you have some issue on MySQL 8 database:
CREATE USER 'user'@'localhost' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON user.* TO 'user'@'localhost' WITH GRANT OPTION;
After creating a user, when I want to grant it previlege, I face this mesage:
ERROR 1410 (42000): You are not allowed to create a user with GRANT
Try:
CREATE USER ‘user’@’localhost’ IDENTIFIED BY ‘root’;
GRANT ALL PRIVILEGES ON user.* TO ‘user’@’localhost’ WITH GRANT OPTION;
Thanks for this, but if i want to revoke delete, drop and trigger for the created user, which command i must use?