Mysql drop function xxxx ERROR 1305 (42000): FUNCTION (UDF) xxxx does not exist


mysql> drop function GetEmployeeInformationByID;
ERROR 1305 (42000): FUNCTION (UDF) GetEmployeeInformationByID does not exist
mysql> DELETE FROM mysql.func WHERE name='GetEmployeeInformationByID';
Query OK, 0 rows affected (0.00 sec)

mysql> DELETE FROM mysql.proc WHERE name='GetEmployeeInformationByID';
Query OK, 1 row affected (0.00 sec)

 

報錯信息:

mysql > drop function xxxx 

ERROR 1305 (42000): FUNCTION (UDF) xxxx does not exist

原因分析:

Navicat視圖中看到的是可能是function也可能是procdure

 

參考文章:

user defined functions - Mysql UDF is installed (but doesn't exist?) - Stack Overflow
https://stackoverflow.com/questions/9755103/mysql-udf-is-installed-but-doesnt-exist

MySQL Bugs: #15439: UDF name case handling forces DELETE FROM mysql.func to remove the UDF
https://bugs.mysql.com/bug.php?id=15439

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM