1. 程式人生 > >mysql用戶管理

mysql用戶管理

用戶管理 mysql grant bsp font creat 快速 host all

  mysql用戶管理

快速創建用戶

grant all on *.* to ‘mvpbang‘@‘localhost‘ identified by ‘123123‘;

grant all on *.* to ‘mvpbang‘@‘%‘ identified by ‘123123‘;

步步為營

00、創建用戶

create user ‘mvpbang‘@‘localhost‘ identified by ‘123123‘;
create user ‘mvpbang‘@‘%‘ identified by ‘d123123‘;

01、用戶授權

grant all on *.* to ‘user1‘@‘localhost‘;

grant select on *.* to ‘mvpbang‘@‘localhost‘;

grant select on *.* to szcx;

mysql用戶管理