Mysql user creation script

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

    try:

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

    where PASSWORD is your password (in quotes).

提交回复
热议问题