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;
mysql 添加用户
推荐阅读更多精彩内容
- 【MySQL】Linux下MySQL 5.5、5.6和5.7的RPM、二进制和源码安装 1.1BLOG文档结构图 ...