Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-18702

mysqldump should use max_statement_time=0 and/or allow setting one

Details

    Description

      If you have a global max_statement_time set, mysqldump might fail, as the dump takes longer. Unfortunately there is no way to specify a max_statement_time for mysqldump.

      Solution would be:
      a) use a session max_statement_time=0
      b) add a --max-statement-time option to mysqldump to overwrite the default
      c) allow to run an arbitrary query before the dump to eg. set session max_statement_time

      Ralf

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment -

            For reference mariabackup does this unconditionally:

            extra/mariabackup/backup_mysql.cc:      xb_mysql_query(connection, "SET SESSION wait_timeout=2147483, max_statement_time=0",
            

            danblack Daniel Black added a comment - For reference mariabackup does this unconditionally: extra/mariabackup/backup_mysql.cc: xb_mysql_query(connection, "SET SESSION wait_timeout=2147483, max_statement_time=0",
            danblack Daniel Black added a comment -

            rucha174, can I get a review request on #2212 please.

            danblack Daniel Black added a comment - rucha174 , can I get a review request on #2212 please.

            People

              danblack Daniel Black
              ralfbecker Ralf Becker
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.