Comments (7)
Oh I think .
And If I convert
CURRENT_OPTS="$CURRENT_OPTS --lock-tables";
to
CURRENT_OPTS="--lock-tables $CURRENT_OPTS";
Your option will be after the --lock-tables ? And resolve the error ? ( did you see a problem ? )
from backup-all-mysql.
@thib3113 what do you think about this?
from backup-all-mysql.
Two ideas to solve the problem:
- handle
MYSQLDUMP_ADD_OPTS
within the loop to add it after--lock-tables
- add a special
LOCK_TABLES
env var. The default is1
. So in my case, I could set it to0
.
I'd prefer the second one as it seems cleaner to me.
@thib3113 Do you have the time to submit a fix?
from backup-all-mysql.
I prefer the 1/ .
Because the second one can maybe break things ( like if you need to add OPTS after the --lock-tables
), and will always show a warning if we lock the tables mysql
( If we clean the loop ) .
else, 3/ instead of adding --lock-table
when the table is mysql
, we maybe can add --skip-lock-tables
if the table is mysql ?
So, In you case, you will get two time --skip-lock-tables
( this maybe need some tests with a big db :/ )
from backup-all-mysql.
Ok. I see the argument about 2. And I don't like 3.
So let's take 1?
from backup-all-mysql.
Ok for me .
Just for the moment, I can't do it for the moment ( like not today, maybe not tomorrow ) .
Because I'll need to recreate repository / docker hub .... to test .
in the other way, I understand you need it asap for yours backups :/ .
from backup-all-mysql.
Seems a simple and good idea
from backup-all-mysql.
Related Issues (3)
- incremental save HOT 2
- mysqldump error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backup-all-mysql.