SyntaxFix
Write A Post
Hire A Developer
Questions
It means you don't have privileges to create the trigger with root@localhost user..
try removing definer from the trigger command:
CREATE DEFINER = root@localhost FUNCTION fnc_calcWalkedDistance
root
localhost
fnc_calcWalkedDistance