집 >데이터 베이스 >MySQL 튜토리얼 >创建仅能访问一个数据库的用户
无详细内容 无 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;