0

How to give full privileges to the user in MySQL

I have created the new database and the user in that respective DB...

Now i need to grant the privileges to that user for full access instead of localhost. what is the syntax....??

MySQL (My- Structured Query Language) Add a comment
ethan
asked Jan 11 2017

Answer

0

Just give asterisk (*) symbol instead of the respective Db name... For example: I created the user called 'testing' and am going to give the full privileges as follows,

GRANT ALL PRIVILEGES ON * . * TO 'testing'@'localhost'; FLUSH PRIVILEGES;

Add a comment
jagan
asked Jan 10 2017
edited Oct 05 2018
Post your Answer
0

GRANT ALL PRIVILEGES ON * . * TO 'testing'@'localhost'; FLUSH PRIVILEGES; in above tag have you given full privileges for that user it is similar to act as root access fine. now my question is how to give particular database and particular table access to user ......?

Add a comment
akr
asked Feb 08 2017
edited Oct 05 2018
Post your Answer