创建仅能访问一个数据库的用户 2015/01/12 13965 CREATE USER 'username'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON `database` . * TO 'username'@'%'; FLUSH PRIVILEGES;