)]}'
{"mariadb/templates/bin/_restore_mariadb.sh.tpl":[{"author":{"_account_id":18236,"name":"Sophie Huang","email":"sophieh01@yahoo.com","username":"SophieHuang"},"change_message_id":"4abe5c3a2b461e54c6e9de5eca6d38baadd54448","unresolved":false,"context_lines":[{"line_number":261,"context_line":"    fi"},{"line_number":262,"context_line":"    if [[ -f ${TMP_DIR}/grants.sql ]]"},{"line_number":263,"context_line":"    then"},{"line_number":264,"context_line":"      $MYSQL \u003c ${TMP_DIR}/grants.sql 2\u003e$RESTORE_LOG"},{"line_number":265,"context_line":"      if [[ \"$?\" -eq 0 ]]"},{"line_number":266,"context_line":"      then"},{"line_number":267,"context_line":"        if ! $MYSQL --execute\u003d\"FLUSH PRIVILEGES;\"; then"}],"source_content_type":"text/x-smarty","patch_set":2,"id":"9f560f44_8d91e849","line":264,"range":{"start_line":264,"start_character":6,"end_line":264,"end_character":51},"updated":"2020-08-17 21:21:54.000000000","message":"This cmd will restore all the users in mysql database if the scope was \"all\" during the backup. However, if the scope was a single database, the grants.sql will be empty. you need to use the single db grant.","commit_id":"94e6f63d0dcbbb72e2d6bfa3b4597aa0a938a499"},{"author":{"_account_id":22636,"name":"Cliff Parsons","email":"cliffhparsons@aol.com","username":"cliffparsons"},"change_message_id":"e83fe729be4dfd166b1fa6c419042dcae36dd55b","unresolved":false,"context_lines":[{"line_number":261,"context_line":"    fi"},{"line_number":262,"context_line":"    if [[ -f ${TMP_DIR}/grants.sql ]]"},{"line_number":263,"context_line":"    then"},{"line_number":264,"context_line":"      $MYSQL \u003c ${TMP_DIR}/grants.sql 2\u003e$RESTORE_LOG"},{"line_number":265,"context_line":"      if [[ \"$?\" -eq 0 ]]"},{"line_number":266,"context_line":"      then"},{"line_number":267,"context_line":"        if ! $MYSQL --execute\u003d\"FLUSH PRIVILEGES;\"; then"}],"source_content_type":"text/x-smarty","patch_set":2,"id":"9f560f44_d321b5fe","line":264,"range":{"start_line":264,"start_character":6,"end_line":264,"end_character":51},"in_reply_to":"9f560f44_8d91e849","updated":"2020-08-18 14:00:27.000000000","message":"Yes agreed.  I will add some code to disallow using the \"all\" option for a backup containing a single database.  I had to do the same thing for postgresql.  Thanks for the comment.","commit_id":"94e6f63d0dcbbb72e2d6bfa3b4597aa0a938a499"}]}
