MYSQL增加用户 并管理特定表

示范


mysql 增加新用户
CREATE USER 'hcp88com'@'localhost' IDENTIFIED BY '***';

权限:

GRANT ALL PRIVILEGES ON `hpc88com` . * TO 'hcp88com'@'localhost';

 

一条语句:

GRANT ALL ON m_cjbybywap.*  TO  cjbybyman@localhost  IDENTIFIED  BY  "whoami138"

跟新:
flush privileges

你可能感兴趣的:(mysql,user)