MySQLgrant all privileges on testdb to
其中,关键字 “privileges” 可以省略。
grant execute on procedure testdb.pr_add to 'dba'@'localhost'
grant execute on function testdb.fn_add to 'dba'@'localhost'
grant all on *.* to dba@'localhost'