Syntax error, Hello World example. Begin ... End
It seems like mysql is confused about the delimeter.

The delimeter for RETURN CONCAT("Hello ", s); is ";".

The delimeter for the query is ";"

I had to change the delimeter to "//" get a good query and change it again to ";".

DROP FUNCTION IF EXISTS helloWorld;

DELIMITER //

CREATE FUNCTION helloWorld(s char(20))
   RETURNS CHAR(50)
   BEGIN

     RETURN CONCAT("Hello ", s);
   END; //

DELIMITER ;

SELECT helloWorld("Albert");


I don't know why, but this is happening only in my DB.