DELIMITER $$
CREATE PROCEDURE get_user_by_email(IN p_email VARCHAR(255))
BEGIN
SELECT id, email, full_name
FROM users
WHERE email = p_email;
END $$
DELIMITER ;Changing the delimiter is the standard pattern when creating stored procedures in the mysql client.