Maison > Article > base de données > 创建仅能访问一个数据库的用户
无详细内容 无 CREATE USER 'username'@'%' IDENTIFIED BY 'password';GRANT ALL PRIVILEGES ON `database` . * TO 'username'@'%';FLUSH PRIVILEGES;
CREATE USER 'username'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON `database` . * TO 'username'@'%'; FLUSH PRIVILEGES;