How to give a user admin rights in mySql

To give a user admin rights in MySql you can use the following snippet.

Sample mySql Query

GRANT ALL PRIVILEGES ON myDbName.* TO 'myUserName'@'%' WITH GRANT OPTION;

Please Share us:
Please rate this snippet

2 thoughts on “How to give a user admin rights in mySql

Leave a Reply