http://www.cnblogs.com/wanghetao/p/3806888.html
insert into mysql.user(Host,User,Password) values("localhost","tin",password("tinS0n!c"));
create database tin;
grant all privileges on tin.* to tin@localhost identified by "tinS0n!c";
flush privileges;
网友评论