I\'m trying to automate MySQL user creation procedure. I thought of creating a temp file that would contain mysql user creation statements, then I would have call it like this :
I have also got same problem, it is resolved just by setting the password by mentioned query below.
SET PASSWORD FOR 'user'@'localhost' = PASSWORD('MyNewPass');