对不同用户进行权限管理。
root用户下创建用户
create user username identified by 'password';
查看当前权限:
show grant;
赋予权限:权限列表
grant select,insert,update on *.*(databasename.tablename, * represents all) to username@'localhost'(login ip, '%' represents all) [identified by];
或者 grant all privileges on ...
flush privileges;
reference: