Whenever I try to create it, even a very simple one such as
- Code: Select all
BEGIN
return 2;
END
it keeps returning the same error :
One or more errors have occurred while processing your request:
The following query has failed: "CREATE FUNCTION `abc`() RETURNS INT NOT DETERMINISTIC NO SQL SQL SECURITY DEFINER return 2"
MySQL said: #1558 - Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 100108, now running 100411. Please use mysql_upgrade to fix this error
As I understand, I can't upgrade mysql because this is MariaDB, not mysql.
What should I do to fix this error?