创建MySQL数据库和授权
create database appdb character set utf8;
create user app@'%' identified by 'MyPass';
grant all privileges on appdb.* to app@'%';
flush privileges;grant all privileges on appdb.* to app@'localhost';
update user set Password=password('MyPass') where user='app';
flush privileges;mysql -u'app' -p'MyPass' appdbLast updated