--- 新建数据库用户授权 --远程的 GRANT ALL PRIVILEGES ON `testdb`.* TO ‘username‘@‘%‘ IDENTIFIED BY ‘pwd2017‘; --本地的 ---GRANT ALL PRIVILEGES ON `testdb`.* TO ‘username‘@‘localhost‘ IDENTIFIED BY ‘pwd2017‘; ---用户 数据库存储过程授权 GRANT SELECT ON mysql.proc TO ‘username‘@‘%‘ IDENTIFIED BY‘pwd2017‘;