FromDual TechFeed (en)
MySQL Enterprise Backup Incremental Cumulative and Differential Backup
Preparing the MySQL Enterprise Administrator Training I found that the MySQL Enterprise Backup Incremental Backup is not described very well. Thus I tried it out and wrote down this how-to:
Differential Incremental Backup

Full Backup
mysqlbackup --user=root --backup-dir=/tape/full backup-and-apply-log
grep end_lsn /tape/full/meta/backup_variables.txt
end_lsn=2583666
Incremental Backups
mysqlbackup --user=root --incremental-backup-dir=/tape/inc1 --start-lsn=2583666 --incremental backup
grep end_lsn …Taxonomy upgrade extras: Backup Restore Mysql Enterprise Backup Enterprise Incremental Cumulative Differential
How the Lack of a Primary Key May Effectively Stop the Slave
Most (relational) DBAs and DB application developers know the concept of a primary key (“PK”) and what it is good for. However, much too often one still encounters table definitions without a PK. True, the relational theory based on sets does not need a PK, and all operations (insert, select, update, delete) can also be done on tables for which no PK was defined. If performance doesn’t matter (or the data volume is small, a typical situation in tests), the lack of a PK does not immediately …
Taxonomy upgrade extras: Primary Key Replication Slave
Log file
Your log file does not show any reason:
6644:2017-03-08 23:13:02.115 - INFO: FromDual Performance Monitor for MySQL and MariaDB (fpmmm) (1.0.1) run started. 6644:2017-03-08 23:13:02.809 - DBG : /usr/bin/zabbix_sender –zabbix-server
It took only 700 ms in the output. So this cannot be a reason for a timeout of 30 seconds.
I will check with your configuration file.
Regards, Shinguz
Taxonomy upgrade extras:
Fixes and suggestions
Hello hranitel
Thanks for your comments.
to 1) it will be fixed in next release in fact it is already fixed in rev763.
to 2) If the fpmmm/Zabbix agent in total takes more than 30 seconds something (with your network?) is wrong. Enable the LogLevel to 4 and check where the time has gone. We had something already earlier with network issues.
to variables_order: Your suggestion is considered and will be introduced into the next version.
to key FromDual.server.check: Something similar I have seen last week. Is …
Taxonomy upgrade extras:
fpmmm agentd died
Hello Vadim
Thank you for your suggestion. I am pretty sure that the empty line is not the problem. But I admit that it is a bug and it will be fixed in the next release (in fact it is already fixed in our internal revision 763). But it is IMHO not critical and will not affect your work.
# ./fpmmm-1.0.1/bin/fpmmm --version 1.0.1 # ./fpmmm-rev763/bin/fpmmm --version rev763 # ./fpmmm-1.0.1/bin/fpmmm --config=/etc/fpmmm.conf 1 # ./fpmmm-rev763/bin/fpmmm --config=/etc/fpmmm.conf 1
What …
Taxonomy upgrade extras:
MySQL and MariaDB authentication against pam_unix
The PAM authentication plugin is an extension included in MySQL Enterprise Edition (since 5.5) and in MariaDB (since 5.2).
MySQL authentication against pam_unix
Check if plugin is available:
# ll lib/plugin/auth*so
-rwxr-xr-x 1 mysql mysql 42937 Sep 18 2015 lib/plugin/authentication_pam.so
-rwxr-xr-x 1 mysql mysql 25643 Sep 18 2015 lib/plugin/auth.so
-rwxr-xr-x 1 mysql mysql 12388 Sep 18 2015 lib/plugin/auth_socket.so …Taxonomy upgrade extras: Authentication Pam Security Plugin
Is your MySQL software Cluster ready?
When we do Galera Cluster consulting we always discuss with the customer if his software is Galera Cluster ready. This basically means: Can the software cope with the Galera Cluster specifics?
If it is a software product developed outside of the company we recommend to ask the software vendor if the software supports Galera Cluster or not.
We typically see 3 different answers:
- We do not know. Then they are at least honest.
- Yes we do support Galera Cluster. Then they hopefully know what they are talking …
Taxonomy upgrade extras: Galera Cluster Toi Ddl Create Temporary Table Dcl Drop Alter Truncate
MySQL replication with filtering is dangerous
From time to time we see in customer engagements that MySQL Master/Slave replication is set-up doing schema or table level replication filtering. This can be done either on Master or on Slave. If filtering is done on the Master (by the binlog_{do|ignore}_db settings), the binary log becomes incomplete and cannot be used for a proper Point-in-Time-Recovery. Therefore FromDual recommends AGAINST this approach.
The replication filtering rules vary depending on the binary log format (ROW and
STATEMENT) See …
Taxonomy upgrade extras: Replication Binary Log Filter Filtering Row Filtering Statement Binlog_format Row
Reset MySQL 5.7 password on macOS over the command line
This one is for all MySQL-DBA’s, which are working on macOS. Since the Apple OS has a rather peculiar way of starting and stopping MySQL, compared to Linux, you can run into some issues. These problems occur especially, if you have no access to the GUI.
Preparation
Put skip-grant-tables into the mysqld section of the my.cnf. A my.cnf can be found in /usr/local/mysql/support-files. You MUST work as root for all the following steps.
shell> sudo -s
shell> vi …Taxonomy upgrade extras: Mysql Server
systemd and sudo
This script probably will not work on Linux systems with systemd (CentOS 7, Ubuntu 16.04, etc.). Systemd cages a process and it seems like sudo rules do not apply any more for a process started with systemd. We are investigating in this…
Taxonomy upgrade extras:
systemd and sudo
This script probably will not work on Linux systems with systemd (CentOS 7, Ubuntu 16.04, etc.). Systemd cages a process and it seems like sudo rules do not apply any more for a process started with systemd. We are investigating in this…
Taxonomy upgrade extras:
Non-standard database set up with SELinux
What is SELinux?
The Security-Enhanced Linux is an extension to the Linux Kernel, made by the NSA (National Security Agency). It implements Mandatory Access Controls (MAC), which allow an administrator to define, how applications and users can access resources on a system.
There is more detail in the SELinux Wki: https://selinuxproject.org/page/FAQ
… and the CentOS documentation: https://wiki.centos.org/HowTos/SELinux
Some distributions have it installed by default, but not active, some have it …
Taxonomy upgrade extras: Mysql Mariadb Centos Security Selinux
MySQL and MariaDB variables inflation
MySQL is well known and widely spread because of its philosophy of Keep it Simple (KISS).
We recently had the discussion that with newer releases also MySQL and MariaDB relational databases becomes more and more complicated.
One indication for this trend is the number of MySQL server system variables and status variables.
In the following tables and graphs we compare the different releases since MySQL version 4.0:
mysql> SHOW GLOBAL VARIABLES;
mysql> SHOW GLOBAL VARIABLES LIKE 'innodb%';
mysql> …Taxonomy upgrade extras: Mysql Variables Status Mariadb
New Features in MySQL and MariaDB
As you probably know MySQL is an Open Source product licensed under the GPL v2. The GPL grants you the right to not just read and understand the code of the product but also to use, modify AND redistribute the code as long as you follow the GPL rules.
This redistribution has happened in the past various times. But in the western hemisphere only 3 of these branches/forks of MySQL are of relevance for the majority of the MySQL users: Galera Cluster for MySQL, MariaDB (Server and Galera Cluster) and Percona …
Taxonomy upgrade extras: Features Mariadb Mysql Gtid Comparison
Multi-Instance set-up with MySQL Enterprise Server 5.7 on RHEL 7 with SystemD
In our current project the customer wants to install and run multiple MySQL Enterprise Server 5.7 Instances on the same machine (yes, I know about virtualization (we run on kvm), containers, Docker, etc.). He wants to use Redhat Enterprise Linux (RHEL) 7 which brings the additional challenge of SystemD. So mysqld_multi is NOT an option any more.
We studied the MySQL documentation about the topic: Configuring Multiple MySQL Instances Using systemd. But to be honest: It was not really clear to me how to do …
Taxonomy upgrade extras: Multi Instance Mysqld_multi Mysql Enterprise Server Rhel Red Hat Myenv Systemd. Container
Enterprise Server vs Community Server packages
I found out that we were wrong in this. We have taken RHEL6 MySQL RPM packages instead of RHEL7 packages. This is the reason why the installation was not smooth (but it worked) and why still old sysV init scripts were used.
Taxonomy upgrade extras:
EditLine vs ReadLine
I was informed that nowadays MySQL Enterprise Server and MySQL Community Server use both EditLine (since MySQL 5.6?).
Taxonomy upgrade extras:
What are the differences between MySQL Community and MySQL Enterprise Server 5.7
The MySQL Server itself
The differences between the MySQL Community Server and the MySQL Enterprise Server 5.7 are as follows as claimed by Oracle:
- The license of the MySQL Server itself.
- Only MySQL Enterprise Edition has the Enterprise plugins (Thread Pool, PAM, Audit, etc.)
- Certifications and Indemnification support for the MySQL Enterprise Server.
- The MySQL Community Server statically links against yaSSL
and readlinevs MySQL Enterprise Server against OpenSSLand libedit. This restriction seems to be …
Taxonomy upgrade extras: Mysql Server Mysql Community Server Mysql Enterprise Server Enterprise License Sidegrade
MySQL 5.7.16 behaves diefferntly thant MySQL 5.7.15
With 5.7.15 we had some strange installation errors which disappeared with 5.7.16. Further we found, that 5.7.15 still uses SysV init scripts and 5.7.16 has switched to SystemD…
Taxonomy upgrade extras:
How to build your own RPM repository for MySQL Enterprise Server 5.7 on RHEL 7
Prepare the RPM repository server
Install the software to create a RPM repository server (on an Ubuntu web server):
shell> sudo apt-get install createrepo
Create the directory structures and initialize the repositories:
shell> sudo mkdir -p /var/www/html/repos/centos/7/os/x86_64
shell> sudo createrepo /var/www/html/repos/centos/7/os/x86_64/
Copy the MySQL Enterprise RPM packages to the repository:
shell> sudo cd /var/www/html/repos/centos/7/os/x86_64/
shell> sudo unzip -v …Taxonomy upgrade extras: Rpm Repository Mysql Mysql Enterprise Server Enterprise Rhel Red Hat

