MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Andrei Elkin caa35f8e25 MDEV-16372 ER_BASE64_DECODE_ERROR upon replaying binary log via mysqlbinlog --verbose
(This commit is for 10.3 and upper branches)

In case of a pattern of non-STMT_END-marked Rows-log-event (A) followed by
a STMT_END marked one (B) mysqlbinlog mixes up the base64 encoded rows events
with their pseudo sql representation produced by the verbose option:
      BINLOG '
        base64 encoded data for A
        ### verbose section for A
        base64 encoded data for B
        ### verbose section for B
      '/*!*/;
In effect the produced BINLOG '...' query is not valid and is rejected with the error.
Examples of this way malformed BINLOG could have been found in binlog_row_annotate.result
that gets corrected with the patch.

The issue is fixed with introduction an auxiliary IO_CACHE to hold on the verbose
comments until the terminal STMT_END event is found. The new cache is emptied
out after two pre-existing ones are done at that time.
The correctly produced output now for the above case is as the following:
      BINLOG '
        base64 encoded data for A
        base64 encoded data for B
      '/*!*/;
        ### verbose section for A
        ### verbose section for B

Thanks to Alexey Midenkov for the problem recognition and attempt to tackle,
and to Venkatesh Duggirala who produced a patch for the upstream whose
idea is exploited here, as well as to MDEV-23077 reporter LukeXwang who
also contributed a piece of a patch aiming at this issue.
2020-08-31 18:38:57 +03:00
BUILD Merge branch '10.2' into 10.3 2019-09-03 13:17:32 +03:00
client MDEV-16372 ER_BASE64_DECODE_ERROR upon replaying binary log via mysqlbinlog --verbose 2020-08-31 18:38:57 +03:00
cmake Merge branch '10.2' into 10.3 2020-08-03 13:41:29 +02:00
dbug Merge 10.2 into 10.3 2020-07-02 06:17:51 +03:00
debian Merge 10.2 into 10.3 2020-07-02 06:17:51 +03:00
Docs Merge branch '10.2' into 10.3 2019-06-14 07:36:47 +02:00
extra Merge 10.2 into 10.3 2020-08-20 09:12:16 +03:00
include Merge 10.2 into 10.3 2020-08-20 09:12:16 +03:00
libmariadb@a746c3af44 C/C v3.1.9 2020-08-02 11:18:30 +02:00
libmysqld MDEV-19632 Replication aborts with ER_SLAVE_CONVERSION_FAILED upon CREATE ... SELECT in ORACLE mode 2020-08-01 07:43:50 +04:00
libservices Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
man Merge branch '10.2' into 10.3 2020-08-03 13:41:29 +02:00
mysql-test MDEV-16372 ER_BASE64_DECODE_ERROR upon replaying binary log via mysqlbinlog --verbose 2020-08-31 18:38:57 +03:00
mysys Merge 10.2 into 10.3 2020-08-20 09:12:16 +03:00
mysys_ssl Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
pcre Merge branch '10.2' into 10.3 2020-05-04 16:47:11 +02:00
plugin Merge 10.2 into 10.3 2020-08-13 18:18:25 +03:00
randgen/conf Group commit for maria engine. 2010-02-12 15:12:28 +02:00
scripts Merge 10.2 into 10.3 2020-08-21 10:17:22 +03:00
sql MDEV-16372 ER_BASE64_DECODE_ERROR upon replaying binary log via mysqlbinlog --verbose 2020-08-31 18:38:57 +03:00
sql-bench Merge 10.2 into 10.3 2020-07-02 06:17:51 +03:00
sql-common Merge 10.2 into 10.3 2020-07-31 13:51:28 +03:00
storage Merge 10.2 into 10.3 2020-08-26 10:45:47 +03:00
strings Merge 10.2 into 10.3 2020-08-13 18:18:25 +03:00
support-files Merge branch '10.2' into 10.3 2020-08-03 13:41:29 +02:00
tests Merge 10.2 into 10.3 2020-07-02 06:17:51 +03:00
unittest Merge 10.2 into 10.3 2020-08-20 09:12:16 +03:00
vio MDEV-23348 vio_shutdown does not prevent later ReadFile on named pipe 2020-08-03 13:23:38 +02:00
win Merge remote-tracking branch 'origin/10.2' into 10.3 2020-06-05 17:59:35 +02:00
wsrep Lintian complains on spelling error 2019-12-02 12:41:13 +02:00
zlib Lintian complains on spelling error 2019-12-02 12:41:13 +02:00
.clang-format .clang-format - do not sort include files. 2019-12-03 22:22:23 +01:00
.gitattributes Merge branch '10.0' into 10.1 2018-05-05 14:01:59 +02:00
.gitignore Merge 10.2 into 10.3 2020-01-31 11:37:12 +02:00
.gitmodules Use https instead of ssh(git@) for rocksdb submodule. 2016-11-15 10:00:19 -05:00
.travis.compiler.sh travis: increase ccache size for linux jobs 2018-11-08 18:30:44 +04:00
.travis.yml Travis-CI: Remove builds that always fail to make CI useful again 2020-05-17 15:52:35 +03:00
appveyor.yml appveyor: config backport from 10.2 2020-04-13 13:49:41 +03:00
BUILD-CMAKE Minor spelling fixes in code comments, docs and output 2018-01-12 16:49:02 +02:00
CMakeLists.txt Merge 10.2 into 10.3 2020-07-20 15:11:59 +03:00
config.h.cmake Merge branch '10.2' into 10.3 2020-08-03 13:41:29 +02:00
configure.cmake Merge branch '10.2' into 10.3 2020-08-03 13:41:29 +02:00
COPYING Update FSF Address 2019-05-11 21:29:06 +03:00
CREDITS Update contributors 2018-09-10 16:47:44 +04:00
EXCEPTIONS-CLIENT MDEV-5645 MariaDB-5.5.35 - references are made to an "EXCEPTIONS-CLIENT" file but it does not exist 2014-05-31 13:18:56 +02:00
INSTALL-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
INSTALL-WIN-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
KNOWN_BUGS.txt various documentation updates 2012-06-18 16:57:58 -04:00
README.md Merge branch '10.2' into 10.3 2019-05-12 17:20:23 +02:00
THIRDPARTY Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
VERSION bump the VERSION 2020-08-10 10:26:37 -04:00

Code status:

  • Travis CI status travis-ci.org (10.3 branch)
  • Appveyor CI status ci.appveyor.com

MariaDB: drop-in replacement for MySQL

MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation. Please read the CREDITS file for details about the MariaDB Foundation, and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Foundation and the MariaDB Corporation, and by many people in the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle Corporation, Inc. For a list of developers and other contributors, see the Credits appendix. You can also run 'SHOW authors' to get a list of active contributors.

A description of the MariaDB project and a manual can be found at:

https://mariadb.org/

https://mariadb.com/kb/en/

https://mariadb.com/kb/en/mariadb-vs-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

As MariaDB is a full replacement of MySQL, the MySQL manual at http://dev.mysql.com/doc is generally applicable.

Help:

More help is available from the Maria Discuss mailing list https://launchpad.net/~maria-discuss and the #maria IRC channel on Freenode.

Licensing:


NOTE:

MariaDB is specifically available only under version 2 of the GNU General Public License (GPLv2). (I.e. Without the "any later version" clause.) This is inherited from MySQL. Please see the README file in the MySQL distribution for more information.

License information can be found in the COPYING file. Third party license information can be found in the THIRDPARTY file.


Bug Reports:

Bug and/or error reports regarding MariaDB should be submitted at: https://jira.mariadb.org

For reporting security vulnerabilities see: https://mariadb.org/about/security-policy/

Bugs in the MySQL code can also be submitted at: https://bugs.mysql.com

The code for MariaDB, including all revision history, can be found at: https://github.com/MariaDB/server