Mysql user creation script

后端 未结 7 671
猫巷女王i
猫巷女王i 2021-02-02 10:00

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 :

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-02 10:14

    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');

提交回复
热议问题