Git Product home page Git Product logo

Comments (7)

thib3113 avatar thib3113 commented on May 27, 2024 1

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.

dsteinkopf avatar dsteinkopf commented on May 27, 2024

@thib3113 what do you think about this?

from backup-all-mysql.

dsteinkopf avatar dsteinkopf commented on May 27, 2024

Two ideas to solve the problem:

  1. handle MYSQLDUMP_ADD_OPTS within the loop to add it after --lock-tables
  2. add a special LOCK_TABLES env var. The default is 1. So in my case, I could set it to 0.

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.

thib3113 avatar thib3113 commented on May 27, 2024

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.

dsteinkopf avatar dsteinkopf commented on May 27, 2024

Ok. I see the argument about 2. And I don't like 3.

So let's take 1?

from backup-all-mysql.

thib3113 avatar thib3113 commented on May 27, 2024

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.

dsteinkopf avatar dsteinkopf commented on May 27, 2024

Seems a simple and good idea 😀

from backup-all-mysql.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.