📌  相关文章
📜  mysql 授予对一个数据库的访问权限 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:08.484000             🧑  作者: Mango

代码示例1
//create the user:
CREATE USER 'user'@'hostname' IDENTIFIED BY 'password';

//give it access to the database dbTest
GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' ;