Create user and grant basic rights in MySQL

Just a quick one.

Sometimes you would like to try out new software and need to create a frest environment for it. Just add a new database, user and some rights to MySQL and you have all you need:

– The Database:
CREATE DATABASE newsoftware;

– User:
CREATE USER ‘user1′@’localhost’ IDENTIFIED BY ‘pass1′;

– Too much right for the user:
GRANT ALL ON newsoftware.* TO ‘user1′@’localhost’;

That’s it, now you can try the software. If it is crap not good, just remove user and drop database.. ;-)

Tags: , , ,

This entry was posted on Saturday, February 12th, 2011 at 22:04 and is filed under MySQL. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

 

Leave a Reply