MySQL Tech-Feed (en)
FromDual Recovery Manager (rman) with progress indicator
Since version 2.1.0 the FromDual Recovery Manager (rman) for MariaDB and MySQL has also a progress indicator for the restore of logical backups made with mysqldump. This feature was implemented because of the numerous requests of FromDual rman users who were not happy with the default mysql behavior.
You can check your current rman version as follows:
# ./bin/rman --version
2.2.1
As with all FromDual tools you get a command overview with examples with the --help option:
# ./bin/rman --help | less
... …Taxonomy upgrade extras: Restore Recovery Pitr Brman Rman Fromdual Backup and Recovery Manager
MariaDB and MySQL Character Set Conversion
Table of Contents
- Introduction
- Character Sets
- Steps to convert Character Set to utf8mb4
- MySQL Pump
- MySQL Master/Slave Replication for Character Set conversion
- MySQL Shell,
mysqlshUpgrade Checker Utility
Introduction
Recently we had a consulting engagement where we had to help the customer to migrate from latin1 Character Set to …
Taxonomy upgrade extras: Character Set Conversion Upgrade Latin1 Utf8 Utf8mb4 Replication Mysqlsh Mysqlpump
FromDual Ops Center for MariaDB and MySQL 0.9.2 has been released
FromDual has the pleasure to announce the release of the new version 0.9.2 of its popular FromDual Ops Center for MariaDB and MySQL focmm.
The FromDual Ops Center for MariaDB and MySQL (focmm) helps DBA’s and System Administrators to manage MariaDB and MySQL database farms. Ops Center makes DBA and Admins life easier!
The main task of Ops Center is to support you in your daily MySQL and MariaDB operation tasks. More information about FromDual Ops Center you can find here.
Download
The new FromDual Ops …
Taxonomy upgrade extras: Operations Release Backup Failover Restore Fromdual Ops Center Ops Center Focmm
FromDual Backup and Recovery Manager for MariaDB and MySQL 2.2.1 has been released
FromDual has the pleasure to announce the release of the new version 2.2.1 of its popular Backup and Recovery Manager for MariaDB and MySQL (brman).
The new FromDual Backup and Recovery Manager can be downloaded from here. The FromDual Repositories were updated. How to install and use the Backup and Recovery Manager is describe in FromDual Backup and Recovery Manager (brman) installation guide.
In the inconceivable case that you find a bug in the FromDual Backup and Recovery Manager please report it to the …
Taxonomy upgrade extras: Backup Restore Recovery Pitr Brman Release Bman Rman Fromdual Backup and Recovery Manager
SuiteCRM / SugarCRM Cheat Sheet
Table of Contents
- Unlink multiple records from Target List
- Find Target Lists of Target/Prospect
- List all email addresses of all accounts
- Objects without Target List
- Find PLP without Objects
- Find Prospect List Entries per Prospect Type
- Quick set-up on Ubuntu 18.04
- Add targets from old target lists to new target list
- Undelete accounts
Unlink multiple records from Target List
- Find id of record to unlink.
SQL> SET @uid = 'f232e8d0-9b82-20f7-7c35-5c1a5ce94e0a';
- Find entry in Target List table: …
Taxonomy upgrade extras: Suitecrm Sugarcrm Crm Target Target_list
FromDual Backup and Recovery Manager for MariaDB and MySQL 2.2.0 has been released
FromDual has the pleasure to announce the release of the new version 2.2.0 of its popular Backup and Recovery Manager for MariaDB and MySQL (brman).
The new FromDual Backup and Recovery Manager can be downloaded from here. The FromDual Repositories were updated. How to install and use the Backup and Recovery Manager is describe in FromDual Backup and Recovery Manager (brman) installation guide.
In the inconceivable case that you find a bug in the FromDual Backup and Recovery Manager please report it to the …
Taxonomy upgrade extras: Backup Restore Recovery Pitr Brman Release Bman Rman
Who else is using my memory - File System Cache analysis
See also our former articles:
- Do not underestimate performance impacts of swapping on NUMA database systems
- MariaDB and MySQL swap analysis
When we do analysis of MariaDB Database servers we also check the memory (RAM and Swap) available:
# free --kilo --wide
total used free shared buffers cache available
Mem: 16106252 4329952 703356 199008 307872 10765072 11042748
Swap: 31250428 528684 30721744
The values for …
Taxonomy upgrade extras: Memory Ram Cache File System O_direct Innodb_flush_method PostgreSQL Innodb Tablespace
Enable General Query Log per Connection in MariaDB
The General Query Log in MariaDB is a Log (file or table) that logs every statement sent from the Application to the MariaDB Database Server from the Connect Command to the Quit Command. A simple example you can find here:
bin/mysqld, Version: 10.4.6-MariaDB-log (MariaDB Server). started with:
Tcp port: 3306 Unix socket: /var/run/mysqld/mysql.sock
Time Id Command Argument
190709 21:27:30 3872 Connect root@localhost as anonymous on test
3872 Query INSERT INTO test …Taxonomy upgrade extras: General Query Log Connection Logon Trigger Sql/Psm
MariaDB sys Schema
The story goes on here.
Taxonomy upgrade extras:
[JIRA] (MDEV-9077) bundle sys schema
Ups, that was a quick reaction… https://jira.mariadb.org/browse/MDEV-9077
Taxonomy upgrade extras:
MariaDB sys Schema
The MySQL sys Schema is a cool thing and was mostly developed by Mark Leith and Jesper Wisborg Krogh from Oracle/MySQL. The sys Schema is based on the somehow cryptic MySQL PERFORMANCE_SCHEMA which was developed by Oracle/MySQL as well.
The sys Schema is: “A collection of views, functions and procedures to help MySQL administrators get insight in to MySQL Database usage.”
Unfortunately the sys Schema was not ported from MySQL to MariaDB by the company MariaDB Corp. so far. So a good opportunity …
Taxonomy upgrade extras: MariaDB Sys Performance_schema
MariaDB sys Schema
I could not resist! I have forked the MySQL sys Schema on GitHub.
Taxonomy upgrade extras:
Kernel version 3.5 and newer: disables swappiness
swappinesscan have a value between 0 and 100.swappiness=0:- Kernel version 3.5 and newer: disables swappiness.
- Kernel version older than 3.5: avoids swapping processes out of physical memory for as long as possible.
swappiness=1:- Kernel version 3.5 and over: minimum swappiness without disabling it entirely.
swappiness=100:- Tells the kernel to aggressively swap processes out of physical memory and move them to swap cache.
Source: …
Taxonomy upgrade extras:
Oops! - That SQL Query was not intended... Flashback
It is Saturday night at 23:19. Time to go to bed after a hard migration day. Just a last clean-up query before finishing: Tap tap tap. Enter! - Oops!
SQL> UPDATE prospect_lists_prospects
SET prospect_list_id = '73ae6cca-7b34-c4a3-5500-5d0e2674dbb6';
Query OK, 4686 rows affected (0.21 sec)
Rows matched: 5666 Changed: 4686 Warnings: 0
A verification query to make sure I am in the mess:
SQL> SELECT prospect_list_id, COUNT(*)
FROM prospect_lists_prospects
GROUP BY prospect_list_id; …Taxonomy upgrade extras: Undo Backup Binary Log Mysqlbinlog Flashback Restore Pitr Recovery Point-in-Time-Recovery
A different opinion
Why does Linux swap out pages when I have many pages cached and vm.swappiness is set to 0? Shouldn’t cached pages get resized and no swapping should occur?
Taxonomy upgrade extras:
Do not underestimate performance impacts of swapping on NUMA database systems
If your MariaDB or MySQL database system is swapping it can have a significant impact on your database query performance! Further it can also slow down your database shutdown and thus influence the whole reboot of your machine. This is especially painful if you have only short maintenance windows or if you do not want to spend the whole night with operation tasks.
When we do reviews of our customer MariaDB or MySQL database systems one of the items to check is Swap Space and swapping. With the free command …
Taxonomy upgrade extras: Swap Numa Performance Database PostgreSQL
PERFORMANCE_SCHEMA in newer MariaDB releases
PERFORMANCE_SCHEMA is invented/developed by Oracle/MySQL. So for MariaDB it is a foreign component and not supported too well...
First of all it is relevant which MariaDB version you are using and which (MySQL) PERFORMANCE_SCHEMA version is built into this MariaDB version. This information can be found with the following query:
SQL> SELECT @@version, plugin_name, plugin_auth_version FROM information_schema.plugins WHERE plugin_name = 'PERFORMANCE_SCHEMA'; …
Taxonomy upgrade extras:
Dropped Tables with FromDual Backup Manager
Some applications have the bad behaviour to CREATE or DROP tables while our FromDual Backup Manager (bman) backup is running.
This leads to the following bman error message:
/opt/mysql/product/5.7.26/bin/mysqldump --user=dba --host=migzm96i --port=3306 --all-databases --quick --single-transaction --flush-logs --triggers --routines --hex-blob --events | tee >(md5sum --binary >/tmp/checksum.23357.md5) | gzip -1
to Destination: /var/mysql/dumps/mysql96i/daily/bck_mysql96i_full_2019-05-22_06-50-01.sql.gz …Taxonomy upgrade extras: Backup Table Bman Drop Error
FromDual Ops Center for MariaDB and MySQL 0.9.1 has been released
FromDual has the pleasure to announce the release of the new version 0.9.1 of its popular FromDual Ops Center for MariaDB and MySQL focmm.
The FromDual Ops Center for MariaDB and MySQL (focmm) helps DBA’s and System Administrators to manage MariaDB and MySQL database farms. Ops Center makes DBA and Admins life easier!
The main task of Ops Center is to support you in your daily MySQL and MariaDB operation tasks. More information about FromDual Ops Center you can find here.
Download
The new FromDual Ops …
Taxonomy upgrade extras: Operations Release Backup Failover Restore Focmm
FromDual Ops Center for MariaDB and MySQL 0.9 has been released
Caution: We have introduced an evil bug which prohibits installation of focmm. Sorry! Somehow it did pass our QA. To fix this bug update file lib/Upgrade.inc on Line 1965 as follows:
- $sql = sprintf("REPLACE INTO `focmm_configuration` (`key`, `value`) VALUES ('%s', '%s'), ('%s', '%s'), ('%s', '%s')"
+ $sql = sprintf("REPLACE INTO `focmm_configuration` (`key`, `value`) VALUES ('%s', '%s'), ('%s', '%s')"
In the meanwhile we prepare a new release.
FromDual has the pleasure to announce …
Taxonomy upgrade extras: Operations Release Backup Failover Restore Focmm Fromdual Ops Center

