Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysql display list of user defined functions in phpmyadmin

Tags:

function

mysql

How can I view the list of user defined functions in mysql database using phpmyadmin.

Mysql database has been migrated from one server to another server and user defined custom functions are not working. I need to view the list of user defined function to check whether they exist in database or not.

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
like image 396
Developer Avatar asked Jun 11 '12 11:06

Developer


People also ask

How can I see all functions in MySQL?

Listing all functions in a MySQL database can be done using SHOW FUNCTION STATUS WHERE db = 'your_database_name'; command.

How do I see users in phpMyAdmin?

By enabling $cfg['Servers'][$i]['users'] and $cfg['Servers'][$i]['usergroups'] you can customize what users will see in the phpMyAdmin navigation. This feature only limits what a user sees, they are still able to use all the functions.

How do I display data in phpMyAdmin?

When you open the phpMyAdmin home page, click on Databases and then select a database to manage by clicking its name. In the page that opens you will see a list with the database tables, the allowed actions with them, the number of the records, the storage engine, the collation, the tables' sizes, and the overhead.


2 Answers

The following MySQL query will list the user-defined routines.

select * from information_schema.routines;
like image 105
Eugen Rieck Avatar answered Oct 15 '22 11:10

Eugen Rieck


That will give you all the information about your custom functions/procedures:

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

hope it helps!

like image 38
Javier Avatar answered Oct 15 '22 11:10

Javier