If we want to do/fix it in 10.2, it should probably go before GA.
I don't think using CREATE OR REPLACE in mysqldump is a good idea, it will make it unusable for all MySQL and for MariaDB 5.5.
Elena Stepanova
added a comment - If we want to do/fix it in 10.2, it should probably go before GA.
I don't think using CREATE OR REPLACE in mysqldump is a good idea, it will make it unusable for all MySQL and for MariaDB 5.5.
MDEV-10431: Please implement mysqldump --add-drop-trigger from MySQL 5.6
pot of mysql changeset by Georgi Kodinov <Georgi.Kodinov@Oracle.com>:
Bug #34325 : --add-drop-trigger option for mysqldump
Implemented the --add-drop-trigger option to prepend each
CREATE TRIGGER in the dump file with DROP TRIGGER.
The option is off by default. Added a test case.
—
Oleksandr Byelkin
added a comment - revision-id: 2761c2e4c1e3fcf95346fcabc6ae23f9e4afc326 (mariadb-10.2.5-129-g2761c2e4c1e)
parent(s): 52463ccff7ee5024f00541c12938ffbaf9b93958
committer: Oleksandr Byelkin
timestamp: 2017-05-03 12:26:57 +0200
message:
MDEV-10431 : Please implement mysqldump --add-drop-trigger from MySQL 5.6
pot of mysql changeset by Georgi Kodinov <Georgi.Kodinov@Oracle.com>:
Bug #34325 : --add-drop-trigger option for mysqldump
Implemented the --add-drop-trigger option to prepend each
CREATE TRIGGER in the dump file with DROP TRIGGER.
The option is off by default. Added a test case.
—
People
Oleksandr Byelkin
Phoenix the II
Votes:
1Vote for this issue
Watchers:
5Start 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.
{"report":{"fcp":720.7999999523163,"ttfb":147.70000004768372,"pageVisibility":"visible","entityId":57480,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"aa15864a-a4fe-49b8-8d7a-48ab09138539","navigationType":0,"readyForUser":847.7000000476837,"redirectCount":0,"resourceLoadedEnd":467.2000000476837,"resourceLoadedStart":152.89999985694885,"resourceTiming":[{"duration":41.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":152.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":152.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":194.20000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":41.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":153.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":194.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":188.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":153.29999995231628,"connectEnd":153.29999995231628,"connectStart":153.29999995231628,"domainLookupEnd":153.29999995231628,"domainLookupStart":153.29999995231628,"fetchStart":153.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":198.09999990463257,"responseEnd":342.09999990463257,"responseStart":209.5,"secureConnectionStart":153.29999995231628},{"duration":300.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":153.39999985694885,"connectEnd":153.39999985694885,"connectStart":153.39999985694885,"domainLookupEnd":153.39999985694885,"domainLookupStart":153.39999985694885,"fetchStart":153.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":198.59999990463257,"responseEnd":454,"responseStart":215.79999995231628,"secureConnectionStart":153.39999985694885},{"duration":64,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":153.5,"connectEnd":153.5,"connectStart":153.5,"domainLookupEnd":153.5,"domainLookupStart":153.5,"fetchStart":153.5,"redirectEnd":0,"redirectStart":0,"requestStart":199,"responseEnd":217.5,"responseStart":215.20000004768372,"secureConnectionStart":153.5},{"duration":67.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":153.70000004768372,"connectEnd":153.70000004768372,"connectStart":153.70000004768372,"domainLookupEnd":153.70000004768372,"domainLookupStart":153.70000004768372,"fetchStart":153.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":200.79999995231628,"responseEnd":220.79999995231628,"responseStart":218,"secureConnectionStart":153.70000004768372},{"duration":67.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":153.70000004768372,"connectEnd":153.70000004768372,"connectStart":153.70000004768372,"domainLookupEnd":153.70000004768372,"domainLookupStart":153.70000004768372,"fetchStart":153.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":202.09999990463257,"responseEnd":221.39999985694885,"responseStart":219.5,"secureConnectionStart":153.70000004768372},{"duration":46.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":153.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":200.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":67.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":153.89999985694885,"connectEnd":153.89999985694885,"connectStart":153.89999985694885,"domainLookupEnd":153.89999985694885,"domainLookupStart":153.89999985694885,"fetchStart":153.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":202.5,"responseEnd":221.09999990463257,"responseStart":218.59999990463257,"secureConnectionStart":153.89999985694885},{"duration":61,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":158.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":158.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":219.5,"responseStart":0,"secureConnectionStart":0},{"duration":79,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":158.59999990463257,"connectEnd":158.59999990463257,"connectStart":158.59999990463257,"domainLookupEnd":158.59999990463257,"domainLookupStart":158.59999990463257,"fetchStart":158.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":224.29999995231628,"responseEnd":237.59999990463257,"responseStart":236.29999995231628,"secureConnectionStart":158.59999990463257},{"duration":302.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":163.5,"connectEnd":163.5,"connectStart":163.5,"domainLookupEnd":163.5,"domainLookupStart":163.5,"fetchStart":163.5,"redirectEnd":0,"redirectStart":0,"requestStart":295.7000000476837,"responseEnd":465.7000000476837,"responseStart":459.39999985694885,"secureConnectionStart":163.5},{"duration":303.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":163.5,"connectEnd":163.5,"connectStart":163.5,"domainLookupEnd":163.5,"domainLookupStart":163.5,"fetchStart":163.5,"redirectEnd":0,"redirectStart":0,"requestStart":345.7000000476837,"responseEnd":467.2000000476837,"responseStart":461.7999999523163,"secureConnectionStart":163.5},{"duration":142.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":475.7999999523163,"connectEnd":475.7999999523163,"connectStart":475.7999999523163,"domainLookupEnd":475.7999999523163,"domainLookupStart":475.7999999523163,"fetchStart":475.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":588.5,"responseEnd":618.0999999046326,"responseStart":617.2999999523163,"secureConnectionStart":475.7999999523163},{"duration":41.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":714.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":714.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":755.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":26,"responseStart":148,"responseEnd":163,"domLoading":152,"domInteractive":902,"domContentLoadedEventStart":902,"domContentLoadedEventEnd":946,"domComplete":1557,"loadEventStart":1557,"loadEventEnd":1558,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":881.2000000476837},{"name":"bigPipe.sidebar-id.end","time":882},{"name":"bigPipe.activity-panel-pipe-id.start","time":882.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":883.3999998569489},{"name":"activityTabFullyLoaded","time":964.2000000476837}],"measures":[],"correlationId":"48309d7ded72c","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":68,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Wouldn't it be simpler always to use CREATE OR REPLACE TRIGGER in mysqldump?