Hello, basically I have two tables:


Now I want to grant the first person in "Peoples" with all privileges, now I've tried to do this:

ON Orders 
TO {testUser |PUBLIC |role_name} 

Doesn't work (because they are technically not a user, therefore, cannot do anything anyway) SO, I tried to make a new user in my database using this:

CREATE USER 'testUser@localhost' IDENTIFIED BY 'mypass'

Which returns: "Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation"
Even though I'm signed in as the administrator, does anyone have any ideas?

Thanks :)

Do you have the privileges for creating new users? there must be something that you need to modify in order to create new users in your DB. Looking at the error message, it simply says that you aren't granted the CREATE USER privilege(s). Check if you are or not. If you're not privileged to create NEW USERS, then grant yourself.

I hope this helps a little bit.

First determine if you have the permission to create a user.

 select user,create_priv from user where user = '<your username>';

If the query fails or if the returned row shows a N in the create_user column, then you don't have the permission.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.