1、MySQL给其他用户设置数据库权限
grant 权限 on `数据库名称`.* to 用户名@'%'
identified by '密码';
例:
grant select,insert,update,delete on `student`.* to root@'%'
identified by 'root';
权限分类:select 查询、insert 插入、update 修改、delete 删除、all privileges 所有权限
2、MySQL修改或删除时,报以下错误
You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
错误原因:数据库安全模式
解决:接触数据库的安全模式
SET SQL_SAFE_UPDATES = 0;