当连接到我的服务器(从另一台机器)时,我得到
Error Code: 1044 Access denied for user 'username'@'%' to database 'dbname'
当我尝试创建一个函数时。但是当我查看我的权限时
SHOW GRANTS FOR CURRENT_USER;
我明白了
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE ROUTINE ON *.* TO ''username''@''%'' IDENTIFIED BY PASSWORD ''--stripped--'' WITH GRANT OPTION'
特别是,这包括 CREATE ROUTINE。为什么我不能做一个功能?我怎样才能改变它,所以我可以?