Skip to content

Commit

Permalink
fix grant command with terminating quote
Browse files Browse the repository at this point in the history
  • Loading branch information
bikegeek committed Jul 23, 2023
1 parent a78ccb4 commit a044dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion METdbLoad/sql/scripts/db_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def create_database(self):
# Permissions
perms_list = ['"',"GRANT INSERT, DELETE, UPDATE, INDEX, DROP ON " ,
self.db_name,
'.* to ', "'mvuser'", "@'%'"]
'.* to ', "'mvuser'", "@'%'", '"']

perms_str = ''.join(perms_list)
perms_cmd = uname_pass + perms_str
Expand Down

0 comments on commit a044dd3

Please sign in to comment.