Coder Social home page Coder Social logo

mysql-admin's People

Contributors

bthievenaz avatar mitch10593 avatar valandre07 avatar ypereirareis avatar

Watchers

 avatar  avatar

mysql-admin's Issues

implements --with-fix in app:diff:rows command

--with-fix is an option not implemented yet.

When enabled, changes reporting should output SQL queries to insert/update/delete records on slave.
Perhaps, a "--skip-write-binlog" could add "SET sql_log_bin = 0;" to first line (and "SET sql_log_bin = 1;" to last line) to avoid replication when running all queries in a master/master setup.

mysql checksum table bug in 5.7 servers

CHECKSUM TABLE don't works as expected in 5.7 servers when tables contains json fields (https://bugs.mysql.com/bug.php?id=87847)

A workaround - not really safe but better than nothing - could be based on a SUM of CRC32:

SELECT SUM(CRC32(CONCAT('id',':',IFNULL(id,''),'column_a',':',IFNULL(column_a,''),'column_b',':',IFNULL(column_b,'')) AS hash FROM table_demo ORDER BY id;

suggested option: --json-fix (will apply only for tables with at least one json field)

bug in app:diff:rows command when line contains a null value

When one field contains a NULL value, CONCAT( ...., NULL, ...) returns NULL.

  • use IFNULL(fieldnullable,'') on all nullable fields.
  • add separators (ex: "fieldname:") in concat for each field, to prevents CONCAT('a','b') to have same result as CONCAT('ab','')

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.