Change the PHP project added a feature, where local MYSQL add a function, and now want to go on the server, then the server only through the MYSQL PHPMYADMIN web operation, input SQL statement creates the function in on a web page,
The results being given: this function has none of DETERMINISTIC
Search a bit for this reason: https: //www.jb51.net/article/97037.htm
Run above: set global log_bin_trust_function_creators = 1; on the line
Another my local MYSQL connection with SQLYOG export function creates statements there / * comments like, on the implementation of the time on the need to remove PHPMYADMIN, or else there could not perform, as well as the
DEFINER = `root` @`% `should be removed. . .
Here is my function to create statement:
USE `sql88_aosijue_c`; DELIMITER $$ CREATE FUNCTION `calc_xjs`(user_id int) RETURNS int(11) BEGIN return (SELECT COUNT(1) FROM tp_users WHERE pid=user_id); END $$ DELIMITER ;
Note the name of the database on the server after the USE PHPMYADMIN then have to execute on the server and consistent