1. MySQL用户和权限管理
1)创建账号
create user "用户名"@"IP地址" identified by "密码";
创建本地账号
create user 'adam1'@'localhost' identified by '123'; #mysql -adam1 -p123
创建远程账号
create user 'adam2'@'192.168.31.10' identified by '123'; #mysql -uadam2 -p123 -h 服务端ip
create user 'adam3'@'192.168.31.%' identified by '123'; #mysql -uadam3 -p123 -h 服务端ipcreate user