Coder Social home page Coder Social logo

ss-dump mysqldump about slickstack HOT 1 CLOSED

littlebizzy avatar littlebizzy commented on July 29, 2024
ss-dump mysqldump

from slickstack.

Comments (1)

jessuppi avatar jessuppi commented on July 29, 2024

Thanks @Bronislawsky

So this is related to other ongoing issues with our upgrade to MySQL 8.0. There were breaking changes to mysqldump that happened first in MySQL 5.7, and then breaking user authentication/etc issues twice so far in early 8.0.x versions.

Anyway, this should now be fixed with latest changes to our Bash functions (aliases) and ss-dump

Ref: https://github.com/littlebizzy/slickstack/blob/master/ss-dump.txt

In summary, adding --no-tablespaces to mysql dump avoids certain privilege-related errors in MySQL 5.7.x and 8.0... also, requiring the TCP protocol is still necessary in order for ss-dump to support remote databases:

function mysqldump {
    command mysqldump --user=$DB_USER --password=$DB_PASSWORD --host=$DB_HOST --protocol=tcp --port=3306 --no-tablespaces --single-transaction --skip-lock-tables --dump-date --force "$@"
}

The handy export MYSQL_PWD=$DB_PASSWORD approach is also now deprecated in 8.0 so for now I've put the password variable back inside the inline options... janky but it works, until we consider more re: options files, or etc.

Last note here is that forcing the --databases flag also avoids confusion re: tables:

mysqldump --databases $DB_NAME > /var/www/meta/wp.sql

Several new public references added to bottom of ss-dump with more explanation of these issues. Thanks!

from slickstack.

Related Issues (20)

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.