新建用户并授权
grant all privileges on table.* to username@localhost identified by 'password';
flush privileges;
grant all privileges on table.* to username@localhost identified by 'password';
flush privileges;
转载于:https://my.oschina.net/u/3264882/blog/2873154