MySQL的一些常用操作
解除MySQL远程连接

新建数据库用户
- 如下指令为新建MySQL用户,赋予只能对
ubtsn_db
数据库进行select,insert,update,delete,drop,create
操作,该操作主要针对公司远端服务器,保护数据安全
grant select,insert,update,delete,drop,create on ubtsn_db.* to ceoifung@"%" identified by "xiaorgeek001?";
- 赋予用户对该表操作的所有权限
grant all privileges on ubtsn_db.* to ceoifung@"%" identified by "xiaorgeek001?";