创建用户
> create user 'usertest'@'localhost' identified by 'test_user';
进入mysql数据库
> use mysql;
创建数据库
> create database applog_dw default charset utf8 collate utf8_general_ci;
为用户分配指定数据库权限
> grant all privileges on `applog_dw`.* to 'AppLog'@'localhost';
> flush privileges;