Mysql user creation script

后端 未结 7 661
猫巷女王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:24

    Well hat is error bcoz you have wrote the wrong way just you have wrote,

    GRANT ALL PRIVILEGES ON *.* TO 'USER'@'localhost' IDENTIFIED BY PASSWORD '@password';
    

    and the true syntax is follows. look here.

    GRANT ALL PRIVILEGES ON *.* TO 'USER'@'localhost' IDENTIFIED BY '@password';
    

    because your password is causing that error. it must be in as shown.

提交回复
热议问题