kamino
Verified User
Hello,
I want to run a script after creating a database.
Indeed when a database is created I want to update users in mysql.user. By using the script database_create_post.sh I have setup, DA is showing "Details" of database creation saying DA is unable to find the user I want to update. But the database is created and the user as well (but not the way I want...).
This situation suppose the script is called directly after database creation, and then DA create the user.
I could use database_user_create_post.sh but it is not called when a database and it's user are created... (see below)
Is that a bug or normal behaviour ?
Does somebody experienced same issue and found a workaround to share ?
Thanks for help
##########################################
database_create_post.sh
database_user_create_post.sh
environmental variables for both scripts:
username - DA username
database - name of the db
user - name of the user created
passwd - password used.
Note that database_create_user_post.sh will not be called when a database and it's user is being created.
This means that any code used in database_user_create_post.sh will have to be doubled in
database_create_post.sh as well for anything you want done to a new user.
##########################################
I want to run a script after creating a database.
Indeed when a database is created I want to update users in mysql.user. By using the script database_create_post.sh I have setup, DA is showing "Details" of database creation saying DA is unable to find the user I want to update. But the database is created and the user as well (but not the way I want...).
This situation suppose the script is called directly after database creation, and then DA create the user.
I could use database_user_create_post.sh but it is not called when a database and it's user are created... (see below)
Is that a bug or normal behaviour ?

Does somebody experienced same issue and found a workaround to share ?
Thanks for help

##########################################
database_create_post.sh
database_user_create_post.sh
environmental variables for both scripts:
username - DA username
database - name of the db
user - name of the user created
passwd - password used.
Note that database_create_user_post.sh will not be called when a database and it's user is being created.
This means that any code used in database_user_create_post.sh will have to be doubled in
database_create_post.sh as well for anything you want done to a new user.
##########################################