Mohamed Atef
Published in : 2022-04-01
When I try to Grant Privileges to user called mo-atef I get this error
ERROR 1410 (42000): You are not allowed to create a user with GRANT
I started Mysql using this command
mysql -u root -p
so How I don't have permission to do it?
I created the user using
CREATE USER 'mo-atef'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
Any idea about it?
Join our community and get the chance to solve your code issues & share your opinion with us
Sign up Now
Jo Micheal Date : 2022-04-01
Best answers
6
Best answers
6
It's weird, this should be working because you used the root user, can you please run this command to make sure that the user is created successfully?
then get the users table using
take a look at the table and see if your user exists or no, If no please create it like this
then you can Grant the privileges using this command
Good luck
Mohamed Atef Date : 2022-04-01
Oh thank you so much I missed it the user didn't created with my command at the first, Thank you so much