January 03, 2010

Mysql New User

« Beanshell Example | Main | Rsync Examples »

Because every time I forget handling to set new users and Mysql account privileges, I decided to write the following example:

//create of a new Mysql database
create database testdb;

//set grant usage options for user
grant usage on *.* to username@'%' identified by 'userpassword';

//set privileges from any hosts
grant all privileges on testdb.* to username@'%' ;

Regards
Rafael Sobek

Technorati Tags:

Posted by rafael.sobek at 5:10 PM in Uncategorized

 

[Trackback URL for this entry]

Pingback: Mysql New User « Drakz Programming News Station at Mo, 4 Jan 9:04 AM

Mysql New User
Blog - Programming Languages , Technologies and Visions. Topics: Visions, Architecture Issues, Programming Languages , … Read the original here: Mysql New User Tags:

Your comment:

(not displayed)
 
 
 

Live Comment Preview:

 
« January »
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
31