Sign up ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I want to create new user and want to give them specific permission like inset, update and delete. But how to create new user and give them permission i don't know.

Any help please.

share|improve this question

2 Answers 2

up vote 5 down vote accepted

It would be something like this :

GRANT SELECT, INSERT, DELETE ON database TO username@'localhost' IDENTIFIED BY 'password';

To see a list of the privileges that have been granted to a specific user:

select * from mysql.user where User='username';


CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
share|improve this answer
Yes it works, thank you so much. Let me try another one also. – user3145373 ツ Jan 8 '14 at 8:32
Thanks.. It helped me. – Arup Rakshit Jan 17 at 9:29

You can use GRANT syntax to give user permission:

For example if you would like to give SELECT permission on TEST database for myUser then:

GRANT SELECT ON Test. TO 'myUser'@'%';*

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.