create function mysql

da phpmyadmin si possono creare stored procedure, facendo attenzione ai separatori, mentre per le stored function bisogna che ci sia il privilegio SUPER se il binlog è attivo.
si veda
http://dev.mysql.com/doc/refman/5.0/en/create-procedure.html
(These statements create stored routines. As of MySQL 5.0.3, to use them, it is necessary to have the CREATE ROUTINE privilege. If binary logging is enabled, these statements might also require the SUPER privilege, as described in Section 18.4, “Binary Logging of Stored Routines and Triggers”. MySQL automatically grants the ALTER ROUTINE and EXECUTE privileges to the routine creator.)