Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a check in the sql command to manage the case where the user cr… #112

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion env_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ EOL

# Create the create-power-bi-ronlyuser.sql file
cat > create-power-bi-ronlyuser.sql <<EOL
CREATE USER 'powerbi'@'%' IDENTIFIED BY 'powerbi';
CREATE USER IF NOT EXISTS 'powerbi'@'%' IDENTIFIED BY 'powerbi';
GRANT SELECT ON ${MYSQL_DATABASE}.* TO 'powerbi'@'%';
FLUSH PRIVILEGES;
EOL
Expand Down
2 changes: 1 addition & 1 deletion env_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ set +a

# Create the create-power-bi-ronlyuser.sql file
cat > create-power-bi-ronlyuser.sql <<EOL
CREATE USER 'powerbi'@'%' IDENTIFIED BY 'powerbi';
CREATE USER IF NOT EXISTS 'powerbi'@'%' IDENTIFIED BY 'powerbi';
GRANT SELECT ON ${MYSQL_DATABASE}.* TO 'powerbi'@'%';
FLUSH PRIVILEGES;
EOL
Expand Down
Loading