#开启远程登录 grant all privileges on *.* to 'user'@'%' identified by 'passwd' with grant option;
#创建数据库 create database DB;
#创建用户 insert into mysql.user(Host,User,Password) values("localhost","user",password("passwd"));
#删除用户 DELETE FROM user WHERE user="username" and HOST="localhost";
#修改指定用户密码 update mysql.user set password=password('new passwd') where user="username" and host="localhost";
#用户授权 grant all privileges on DB.* to 'user'@'localhost' identified by 'passwd'; grant select,update on DB.* to 'user'@'localhost' identified by 'passwd';