Trying to create functions on MySQL that runs on Google CloudSQL. These functions worked fine on another server (VPS- Godaddy).
Official documentation says that User Defined Functions are not supported, but I am trying to create a regular stored function and not a UDF.
Lookup Error - MySQL Database Error: You do not have the SUPER privilege and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)
Logged in using Toad
Username used TAdmin
Sample Function:
DELIMITER $$
DROP FUNCTION IF EXISTS `func_getEQId`$$
CREATE DEFINER=`TAdmin`@`%` FUNCTION `func_getEQId` (`pTopicId` INT(11))
RETURNS BIGINT(20)
READS SQL DATA DETERMINISTIC
BEGIN
DECLARE vQId bigint (20);
SELECT QId INTO vQId FROM quests WHERE...
RETURN vQId;
END$$
Don't want to disable binary logging
log_bin_trust_function_creators
? Usually with that enable you can create Functions and Stored Procedures. – Enphytoticlog_bin_trust_function_creators
flag on did the trick and I was able to register UDF. Thanks. – Boisleduc