9

如何使用 phpmyadmin 查看 mysql 数据库中的用户定义函数列表。

Mysql 数据库已从一台服务器迁移到另一台服务器,并且用户定义的自定义函数不起作用。我需要查看用户定义函数列表以检查它们是否存在于数据库中。

Fatal error: db::execute() Could not execute: FUNCTION database.xxx does not exist (SQL: SELECT Function(field) FROM users in file.php on line xx
4

2 回答 2

25

以下 MySQL 查询将列出用户定义的例程。

select * from information_schema.routines;
于 2012-06-11T11:40:36.950 回答
4

这将为您提供有关您的自定义功能/程序的所有信息:

select specific_name, definer from information_schema.routines where definer not like '%mysql%';

希望能帮助到你!

于 2017-05-28T09:16:03.210 回答