MySQL 数据库连接权限 给用户赋连接权限 -- 给所用用户赋远程连接权限 update user set host="%",password_expired='N' where host='localhost'; -- 给指定用户***赋远程连接权限 update user set host="%",password_expired='N' where user='***'; ##取消用户远程连接权限 -- 取消除***用户的其他用户的远程连接权限 update user set host="localhost" where user='***';