I fixed the syntax problem, now I have a new one.
I have a permissions problem. I can connect with a script with a user, but this user (who has admin rights) gets the error "Access Denied for user using password: YES" after trying to run a SQL query to insert data from a uploaded CSV.
Could anyone explain why?