mysql授权访问数据库
授权给mysql权限
将所有的权限赋值给某个用户
grant all privileges on *.* to username@"%" identified by 'password' grant all on gamesp.* to newuser@localhost identified by 'password'; grant all privileges on *.* to test@"%" identified by '123456' grant all on 数据库名.* to test@localhost identified by '密码'; grant all privileges on *.* to test@'%' identified by "123456";