1,创建mysql用及授予权限:

在mysql中输入help grant 会出现下面信息:

CREATE USER 'jeffrey'@'localhost' IDENTIFIED BY 'mypass';
GRANT ALL ON db1.* TO 'jeffrey'@'localhost';
GRANT SELECT ON db2.invoice TO 'jeffrey'@'localhost';
GRANT USAGE ON *.* TO 'jeffrey'@'localhost' WITH MAX_QUERIES_PER_HOUR 90;
View Code

相关文章:

  • 2021-07-03
  • 2021-12-17
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-04-21
  • 2021-06-02
猜你喜欢
  • 2021-08-09
  • 2021-11-03
  • 2021-06-21
相关资源
相似解决方案