mysql授权某数据库 允许某用户远程连接 2015/02/16 14563 grant all privileges on *.* to 'userName'@'%' identified by 'password' WITH GRANT OPTION; FLUSH PRIVILEGES; /** on *.* 是 on 数据库.表 @% 是任意的 @ip 可以具体某个ip **/