--增删改GRANTselect,insert,update,deleteON project_class.*TO'rgzx'@'%' IDENTIFIED BY 'rgzx@123321@' WITHGRANTOPTION;--所有grantallprivilegeson root.*to'root'@'172.18.23.201' identified by 'root';
1.删除用指定户 delete from user where user='root' and host='%';2. 给用户授权--增删改GRANT select, insert, update, delete ON project_class.* TO 'rgzx'@'%' IDENTIFIED BY 'rgzx@123321@' WITH GRANT OPTION;--所有grant all privileges on root.* to 'root'@'172.18.23.201'