SlideShare a Scribd company logo
MySQL vs MariaDB
HighLoad++ 2019
Alkin Tezuysal
Who am I?
@ask_dba - Alkin Tezuysal
Born to Sail, Forced to Work
❖ Open Source Database Evangelist
❖ Global Database Operations Expert
❖ Cloud Infrastructure Architect AWS
❖ Inspiring Technical and Strategic Leader
❖ Creative Team Builder
❖ Speaker, Mentor, and Coach
Agenda
❖ Installation
❖ Authentication
❖ Storage Engines
❖ Clustering Options
❖ Routing and Proxy
❖ Security and Encryption
❖ Backup and Recovery
❖ Performance and Benchmarks
3
Installation - MySQL 8
❖ Straight forward MySQL Yum repos
➢ Oracle Linux, Red Hat Enterprise Linux, CentOS
➢ Also available Debian packages
❖ Fedora provides RPM packages
➢ MySQL server, client, MySQL Workbench, MySQL Utilities, MySQL
Router, MySQL Shell, Connector/ODBC, Connector/Python
Installation - MySQL 8
$curl https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
$sudo yum localinstall mysql80-community-release-el7-3.noarch.rpm
$sudo yum install mysql-community-server
$sudo grep 'temporary password' /var/log/mysqld.log
$mysql -uroot -p
> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
Installation - MySQL 8 (Debian)
Download the repository package from: https://dev.mysql.com/get/mysql-apt-
config_0.8.14-1_all.deb
shell> sudo dpkg -i mysql-apt-config_0.8.14-1_all.deb
Set up the version you want to install
and
shell> sudo apt update
shell> sudo apt-get install mysql-community-server
Installation - MySQL 8
1. The server is initialized.
2. SSL certificate and key files are generated in the data directory.
3. validate_password policy is installed and enabled: The default password
policy implemented by validate_password requires that passwords contain
at least one upper case letter, one lower case letter, one digit, and one
special character, and that the total password length is at least 8
characters.
Installation MariaDB 10.4
❖ Downloadable script to install
$curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo
bash
$sudo yum install MariaDB-server MariaDB-client MariaDB-shared MariaDB-backup
MariaDB-common
$sudo systemctl start mariadb
$sudo journalctl -f -u mariadb
Installation MariaDB 10.4 (Debian)
❖ Downloadable script to install
sudo apt-get install software-properties-common dirmngr
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com
0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64]
http://mirror.biznetgio.com/mariadb/repo/10.4/debian buster main'
sudo apt update
sudo apt install mariadb-server
Authentication - MySQL 8
❖ A superuser account 'root'@'localhost is created.
❖ A password for the superuser is set and stored in the error
log file.
❖ Single authentication method per user
Authentication - MariaDB 10.4
❖ Multiple Authentication Methods per
Account
➢ The root user is created with both
mysql_native_password and the unix_socket auth
plugin.
➢ unix_socket matches your OS uid with a mysql user.
➢ mysql_native_password auth creates an “INVALID”
password change with SET PASSWORD() classic
approach.
Storage Engines - MySQL 8
❖ FEDERATED
❖ MEMORY
❖ InnoDB
❖ Performance_Schema
❖ MyISAM
❖ MRG_MYISAM
❖ BLACKHOLE
❖ CSV
❖ ARCHIVE
Storage Engines - MariaDB 10.4
Default Installation (8)
❖ CSV
❖ MRG_MyISAM
❖ MEMORY
❖ Aria
❖ MyISAM
❖ SEQUENCE
❖ InnoDB
❖ PERFORMANCE_SCHEMA
Plugins (6)
❖ TokuDB
❖ RocksDB
❖ Spider
❖ Connect
❖ OQGRAPH
❖ Mroonga
Clustering Options
MySQL 8
❖ InnoDB Cluster which
consists of:
➢ Group Replication (available
as a plugin)
➢ MySQL Shell
➢ MySQL Router
MariaDB 10.4
❖ MariaDB Galera Cluster:
➢ Galera 4 (available in a
separate package)
Routing & Proxy
MySQL 8
❖ MySQL Router (GPLv2)
[CE/EE]
❖ 3rd Party ProxySQL
MariaDB 10.4
❖ Maxscale (2.X versions are
using the BSL licence)
Security and Encryption - MySQL 8
❖ (Data-at-Rest) Encryption
➢ MySQL System Tablespace Encryption
➢ General Tablespace Encryption
➢ Undo log
➢ Redo log
➢ Binary and relay log encryption
➢ Audit log
➢ Keyring
■ keyring_file
■ keyring_encrypted_file [E]
■ keyring_okv [E]
■ keyring_aws [E]
■ HashiCorp Vault Keyring [E]
Security and Encryption - MariaDB
10.4
❖ (TDE) Transparent Data Encryption
➢ Everything including all tables
➢ Individual tables
➢ Everything, excluding individual tables
❖ Key Management and Encryption Plugin
➢ Data-at-rest with Encryption Key Management
➢ File Key Management
➢ AWS Key Management
➢ Eperi Key Management
➢ Plugin API
Security and Encryption - HC Vault
MySQL 8
❖ In MySQL 8.0.18 available
as an Enterprise plugin
❖ 3rd Party
➢ Percona Server 5.7 and 8.0
MariaDB 10.4
❖ MariaDB 10.4 has a feature
request
Data Masking
MySQL 8
❖ MySQL Enterprise Data
Masking and De-
Identification [EE only
feature]
❖ 3rd Party:
➢ Inexpensive Datamasking
for MySQL with ProxySQL
[CE]
MariaDB 10.4
❖ Data masking by using
MaxScale proxy
Auditing
MySQL 8
❖ MySQL Enterprise Audit
[EE]
❖ 3rd Party
➢ Percona Audit Log Plugin
MariaDB 10.4
❖ MariaDB Audit Plugin
Backup and Recovery
MySQL 8
❖ Mysqldump
❖ Mysqlpump
❖ MySQL Enterprise Backup
[EE]
❖ The Clone Plugin (8.0.17)
❖ 3rd Party
➢ Percona XtraBackup [CE]
➢ Mydumper
MariaDB 10.4
❖ Mysqldump
❖ Mariabackup
❖ 3rd Party
■ Mydumper
Key Default Variables
MySQL 8 MariaDB 10.4
innodb_autoinc_lock_mode=2 innodb_autoinc_lock_mode=1
log_bin=ON log_bin=OFF
max_allowed_packet=64M max_allowed_packet=16M
open_files_limit=10000 open_files_limit=4186
Query cache removed: https://mysqlserverteam.com/mysql-8-
0-retiring-support-for-the-query-cache/
query_cache_type=off
But
query_cache_limit=1M
table_open_cache_instances=16 table_open_cache_instances=8
table_open_cache=4000 table_open_cache=2000
Key Default Variables
MySQL 8 MariaDB 10.4
thread_cache_size=9 thread_cache_size=151
binlog_format=ROW binlog_format=MIXED
binlog_group_commit_sync_delay ---
DEPRECATED innodb_locks_unsafe_for_binlog
log_slave_updates=ON log_slave_updates=OFF
sync_binlog=1 sync_binlog=0
sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TAB
LES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_
DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISI
ON_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_S
UBSTITUTION
Performance and Benchmarks
Thanks to Dimitri Kravchuk for providing
❖ Information on Benchmarks
➢ Blog
➢ Talks
➢ Twitter
Benchmarks - MySQL
Ref:http://dimitrik.free.fr/Presentations/MySQL_Perf-PLIVE19-EU-dim.pdf
Benchmarks - MySQL
Ref:http://dimitrik.free.fr/Presentations/MySQL_Perf-PLIVE19-EU-dim.pdf
Benchmarks - MySQL
Ref:http://dimitrik.free.fr/Presentations/MySQL_Perf-PLIVE19-EU-dim.pdf
Benchmarks - MySQL
Ref:http://dimitrik.free.fr/Presentations/MySQL_Perf-PLIVE19-EU-dim.pdf
Benchmarks - MariaDB
Ref:http://dimitrik.free.fr/Presentations/MySQL_Perf-PLIVE19-EU-dim.pdf
Benchmarks - MariaDB
Ref:http://dimitrik.free.fr/Presentations/MySQL_Perf-PLIVE19-EU-dim.pdf
Conclusion - MySQL 8
❖ 8.0.0 to 8.0.5 Several Bugs Fixed
❖ 8.0.11 Deprecates uft8mb3
❖ 8.0.12 Improves performance_schema defaults
❖ 8.0.13 Major deprecations InnoDB, Partitioning
❖ 8.0.14 Dual passwords, Lateral Derived Tables, Parallel Read of Index , GR Consistency Levels
❖ 8.0.15 Bugs Fixed
➢ InnoDB: After a checkpoint operation persisted modifications to data dictionary metadata, there was
potential for new metadata changes to be lost under certain circumstances. (Bug #29120297)
➢ Group Replication was unable to function in the 8.0.14 release of MySQL Server if IPv6 support was
disabled at the operating system level, even if the replication group did not use any IPv6 addresses. The
issue is fixed by this release of MySQL Server, 8.0.15. (Bug #29249542, Bug #94004)
❖ If MySQL was running on the host system and within Docker, it was not possible to update or remove MySQL on
the host system. (Bug #28244773, Bug #91405)8.0.0 to 8.0.11 several bug fixes
❖ 8.0.16 Account-management capabilities, deprecation of mysql_upgrade, Check Constraints, GR Auto Re-Join
❖ 8.0.17 Clone Plugin, JSON Array Indexes and Schema
❖ 8.0.18 Hash Join, Explain Analyze
31
Conclusion - MariaDB 10.4
❖ Authentication
➢ The unix_socket authentication plugin is now default on Unix-like systems, which is a major change to
authentication in MariaDB (MDEV-12484)
➢ User password expiry (MDEV-7597)
➢ Account Locking (MDEV-13095)
➢ ...more
❖ InnoDB
➢ Added instant DROP COLUMN and changing of the order of columns (MDEV-15562)
➢ More Instant VARCHAR extension or ROW_FORMAT=DYNAMIC and ROW_FORMAT=COMPACT
(MDEV-15563)
➢ Reduced redo log volume for undo tablespace initialization (MDEV-17138)
➢ Removed crash-upgrade support for pre-10.2.19 TRUNCATE TABLE (MDEV-13564)
❖ Optimizer
➢ Implementation of the optimizer trace, one can enable the optimizer trace by enabling the system variable
optimizer_trace (MDEV-6111)
❖ Galera
➢ In MariaDB 10.4.2 and later, Galera has been upgraded from Galera 3 to Galera 4.
32
Ref:https://mariadb.com/kb/en/library/changes-improvements-in-mariadb-104/
Special Thanks to...
❖ Daniel Guzman Burgos
❖ Stephen Thorn
❖ Hrvoje Matijakovic
❖ Sveta Smirnova @svetsmirnova
❖ Engineering, Experts and Services Teams at
Percona
33
Q&A
34
Credits & References
https://www.percona.com/doc/percona-server/8.0/feature_comparison.html
https://mariadb.com/kb/en/library/changes-improvements-in-mariadb-104/#new-features-in-galera-4
35

More Related Content

What's hot

Mysql ecosystem in 2019
Mysql ecosystem in 2019Mysql ecosystem in 2019
Mysql ecosystem in 2019
Alkin Tezuysal
 
Myrocks in the wild wild west! FOSDEM 2020
Myrocks in the wild wild west! FOSDEM 2020Myrocks in the wild wild west! FOSDEM 2020
Myrocks in the wild wild west! FOSDEM 2020
Alkin Tezuysal
 
When is Myrocks good? 2020 Webinar Series
When is Myrocks good? 2020 Webinar SeriesWhen is Myrocks good? 2020 Webinar Series
When is Myrocks good? 2020 Webinar Series
Alkin Tezuysal
 
Mysql ecosystem in 2018
Mysql ecosystem in 2018Mysql ecosystem in 2018
Mysql ecosystem in 2018
Alkin Tezuysal
 
Proxysql use case scenarios hl++ 2017
Proxysql use case scenarios    hl++ 2017 Proxysql use case scenarios    hl++ 2017
Proxysql use case scenarios hl++ 2017
Alkin Tezuysal
 
Intro to MySQL Part I
Intro to MySQL Part IIntro to MySQL Part I
Intro to MySQL Part I
Alkin Tezuysal
 
20171104 hk-py con-mysql-documentstore_v1
20171104 hk-py con-mysql-documentstore_v120171104 hk-py con-mysql-documentstore_v1
20171104 hk-py con-mysql-documentstore_v1
Ivan Ma
 
Meet MariaDB Server 10.1 London MySQL meetup December 2015
Meet MariaDB Server 10.1 London MySQL meetup December 2015Meet MariaDB Server 10.1 London MySQL meetup December 2015
Meet MariaDB Server 10.1 London MySQL meetup December 2015
Colin Charles
 
High Performance Drupal with MariaDB
High Performance Drupal with MariaDBHigh Performance Drupal with MariaDB
High Performance Drupal with MariaDB
MariaDB Corporation
 
Lessons from database failures
Lessons from database failuresLessons from database failures
Lessons from database failures
Colin Charles
 
MySQL features missing in MariaDB Server
MySQL features missing in MariaDB ServerMySQL features missing in MariaDB Server
MySQL features missing in MariaDB Server
Colin Charles
 
The New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreThe New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and More
MariaDB Corporation
 
Securing your MySQL / MariaDB Server data
Securing your MySQL / MariaDB Server dataSecuring your MySQL / MariaDB Server data
Securing your MySQL / MariaDB Server data
Colin Charles
 
Webseminar: MariaDB Enterprise und MariaDB Enterprise Cluster
Webseminar: MariaDB Enterprise und MariaDB Enterprise ClusterWebseminar: MariaDB Enterprise und MariaDB Enterprise Cluster
Webseminar: MariaDB Enterprise und MariaDB Enterprise ClusterMariaDB Corporation
 
Meet MariaDB 10.1 at the Bulgaria Web Summit
Meet MariaDB 10.1 at the Bulgaria Web SummitMeet MariaDB 10.1 at the Bulgaria Web Summit
Meet MariaDB 10.1 at the Bulgaria Web Summit
Colin Charles
 
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin FrankfurtMariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB Corporation
 
The MySQL ecosystem - understanding it, not running away from it!
The MySQL ecosystem - understanding it, not running away from it! The MySQL ecosystem - understanding it, not running away from it!
The MySQL ecosystem - understanding it, not running away from it!
Colin Charles
 
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High AvailabilityBest practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Colin Charles
 
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Better encryption & security with MariaDB 10.1 & MySQL 5.7Better encryption & security with MariaDB 10.1 & MySQL 5.7
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Colin Charles
 
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014
MariaDB Corporation
 

What's hot (20)

Mysql ecosystem in 2019
Mysql ecosystem in 2019Mysql ecosystem in 2019
Mysql ecosystem in 2019
 
Myrocks in the wild wild west! FOSDEM 2020
Myrocks in the wild wild west! FOSDEM 2020Myrocks in the wild wild west! FOSDEM 2020
Myrocks in the wild wild west! FOSDEM 2020
 
When is Myrocks good? 2020 Webinar Series
When is Myrocks good? 2020 Webinar SeriesWhen is Myrocks good? 2020 Webinar Series
When is Myrocks good? 2020 Webinar Series
 
Mysql ecosystem in 2018
Mysql ecosystem in 2018Mysql ecosystem in 2018
Mysql ecosystem in 2018
 
Proxysql use case scenarios hl++ 2017
Proxysql use case scenarios    hl++ 2017 Proxysql use case scenarios    hl++ 2017
Proxysql use case scenarios hl++ 2017
 
Intro to MySQL Part I
Intro to MySQL Part IIntro to MySQL Part I
Intro to MySQL Part I
 
20171104 hk-py con-mysql-documentstore_v1
20171104 hk-py con-mysql-documentstore_v120171104 hk-py con-mysql-documentstore_v1
20171104 hk-py con-mysql-documentstore_v1
 
Meet MariaDB Server 10.1 London MySQL meetup December 2015
Meet MariaDB Server 10.1 London MySQL meetup December 2015Meet MariaDB Server 10.1 London MySQL meetup December 2015
Meet MariaDB Server 10.1 London MySQL meetup December 2015
 
High Performance Drupal with MariaDB
High Performance Drupal with MariaDBHigh Performance Drupal with MariaDB
High Performance Drupal with MariaDB
 
Lessons from database failures
Lessons from database failuresLessons from database failures
Lessons from database failures
 
MySQL features missing in MariaDB Server
MySQL features missing in MariaDB ServerMySQL features missing in MariaDB Server
MySQL features missing in MariaDB Server
 
The New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreThe New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and More
 
Securing your MySQL / MariaDB Server data
Securing your MySQL / MariaDB Server dataSecuring your MySQL / MariaDB Server data
Securing your MySQL / MariaDB Server data
 
Webseminar: MariaDB Enterprise und MariaDB Enterprise Cluster
Webseminar: MariaDB Enterprise und MariaDB Enterprise ClusterWebseminar: MariaDB Enterprise und MariaDB Enterprise Cluster
Webseminar: MariaDB Enterprise und MariaDB Enterprise Cluster
 
Meet MariaDB 10.1 at the Bulgaria Web Summit
Meet MariaDB 10.1 at the Bulgaria Web SummitMeet MariaDB 10.1 at the Bulgaria Web Summit
Meet MariaDB 10.1 at the Bulgaria Web Summit
 
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin FrankfurtMariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
 
The MySQL ecosystem - understanding it, not running away from it!
The MySQL ecosystem - understanding it, not running away from it! The MySQL ecosystem - understanding it, not running away from it!
The MySQL ecosystem - understanding it, not running away from it!
 
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High AvailabilityBest practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High Availability
 
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Better encryption & security with MariaDB 10.1 & MySQL 5.7Better encryption & security with MariaDB 10.1 & MySQL 5.7
Better encryption & security with MariaDB 10.1 & MySQL 5.7
 
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014
 

Similar to Mysql 8 vs Mariadb 10.4 Highload++ 2019

Slides: Introducing the new ClusterControl 1.2.9 - with live demo
Slides: Introducing the new ClusterControl 1.2.9 - with live demo Slides: Introducing the new ClusterControl 1.2.9 - with live demo
Slides: Introducing the new ClusterControl 1.2.9 - with live demo
Severalnines
 
MySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features SummaryMySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features Summary
Olivier DASINI
 
MySQL on Docker and Kubernetes
MySQL on Docker and KubernetesMySQL on Docker and Kubernetes
MySQL on Docker and Kubernetes
Balasubramanian Kandasamy
 
Tutorial MySQL com Java
Tutorial MySQL com JavaTutorial MySQL com Java
Tutorial MySQL com Java
MySQL Brasil
 
Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...
Otto Kekäläinen
 
Automating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps ApproachAutomating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps ApproachAkshaya Mahapatra
 
Deploying windows containers with kubernetes
Deploying windows containers with kubernetesDeploying windows containers with kubernetes
Deploying windows containers with kubernetes
Ben Hall
 
Micro Datacenter & Data Warehouse
Micro Datacenter & Data WarehouseMicro Datacenter & Data Warehouse
Micro Datacenter & Data Warehouse
mdcdwh
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
Wim Godden
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
Olivier DASINI
 
Megha_Osi my sql productroadmap
Megha_Osi my sql productroadmapMegha_Osi my sql productroadmap
Megha_Osi my sql productroadmapOpenSourceIndia
 
Welcome to MySQL
Welcome to MySQLWelcome to MySQL
Welcome to MySQL
Grigale LTD
 
ProxySQL for MySQL
ProxySQL for MySQLProxySQL for MySQL
ProxySQL for MySQL
Mydbops
 
MySQL Ecosystem in 2020
MySQL Ecosystem in 2020MySQL Ecosystem in 2020
MySQL Ecosystem in 2020
Alkin Tezuysal
 
Automated Database Sanitization with AWS
Automated Database Sanitization with AWSAutomated Database Sanitization with AWS
Automated Database Sanitization with AWS
Dee Wilcox
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
Kenny Gryp
 
MySQL Shell - The Best MySQL DBA Tool
MySQL Shell - The Best MySQL DBA ToolMySQL Shell - The Best MySQL DBA Tool
MySQL Shell - The Best MySQL DBA Tool
Miguel Araújo
 
2014 OpenSuse Conf: Protect your MySQL Server
2014 OpenSuse Conf: Protect your MySQL Server2014 OpenSuse Conf: Protect your MySQL Server
2014 OpenSuse Conf: Protect your MySQL Server
Georgi Kodinov
 
App fabric introduction
App fabric introductionApp fabric introduction
App fabric introduction
Dennis van der Stelt
 

Similar to Mysql 8 vs Mariadb 10.4 Highload++ 2019 (20)

Slides: Introducing the new ClusterControl 1.2.9 - with live demo
Slides: Introducing the new ClusterControl 1.2.9 - with live demo Slides: Introducing the new ClusterControl 1.2.9 - with live demo
Slides: Introducing the new ClusterControl 1.2.9 - with live demo
 
MySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features SummaryMySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features Summary
 
MySQL on Docker and Kubernetes
MySQL on Docker and KubernetesMySQL on Docker and Kubernetes
MySQL on Docker and Kubernetes
 
Tutorial MySQL com Java
Tutorial MySQL com JavaTutorial MySQL com Java
Tutorial MySQL com Java
 
Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...
 
Automating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps ApproachAutomating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps Approach
 
Deploying windows containers with kubernetes
Deploying windows containers with kubernetesDeploying windows containers with kubernetes
Deploying windows containers with kubernetes
 
Micro Datacenter & Data Warehouse
Micro Datacenter & Data WarehouseMicro Datacenter & Data Warehouse
Micro Datacenter & Data Warehouse
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
 
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
 
Megha_Osi my sql productroadmap
Megha_Osi my sql productroadmapMegha_Osi my sql productroadmap
Megha_Osi my sql productroadmap
 
Welcome to MySQL
Welcome to MySQLWelcome to MySQL
Welcome to MySQL
 
ProxySQL for MySQL
ProxySQL for MySQLProxySQL for MySQL
ProxySQL for MySQL
 
MySQL Ecosystem in 2020
MySQL Ecosystem in 2020MySQL Ecosystem in 2020
MySQL Ecosystem in 2020
 
Automated Database Sanitization with AWS
Automated Database Sanitization with AWSAutomated Database Sanitization with AWS
Automated Database Sanitization with AWS
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
 
MySQL Shell - The Best MySQL DBA Tool
MySQL Shell - The Best MySQL DBA ToolMySQL Shell - The Best MySQL DBA Tool
MySQL Shell - The Best MySQL DBA Tool
 
2014 OpenSuse Conf: Protect your MySQL Server
2014 OpenSuse Conf: Protect your MySQL Server2014 OpenSuse Conf: Protect your MySQL Server
2014 OpenSuse Conf: Protect your MySQL Server
 
App fabric introduction
App fabric introductionApp fabric introduction
App fabric introduction
 

More from Alkin Tezuysal

Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Alkin Tezuysal
 
Design and Modeling for MySQL SCALE 21X Pasadena, CA Mar 2024
Design and Modeling for MySQL SCALE 21X Pasadena, CA Mar 2024Design and Modeling for MySQL SCALE 21X Pasadena, CA Mar 2024
Design and Modeling for MySQL SCALE 21X Pasadena, CA Mar 2024
Alkin Tezuysal
 
FOSSASIA - MySQL Cookbook 4e Journey APR 2023.pdf
FOSSASIA - MySQL Cookbook 4e Journey APR 2023.pdfFOSSASIA - MySQL Cookbook 4e Journey APR 2023.pdf
FOSSASIA - MySQL Cookbook 4e Journey APR 2023.pdf
Alkin Tezuysal
 
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdfMySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
Alkin Tezuysal
 
How OLTP to OLAP Archival Demystified
How OLTP to OLAP Archival DemystifiedHow OLTP to OLAP Archival Demystified
How OLTP to OLAP Archival Demystified
Alkin Tezuysal
 
MySQL Cookbook: Recipes for Developers, Alkin Tezuysal and Sveta Smirnova - P...
MySQL Cookbook: Recipes for Developers, Alkin Tezuysal and Sveta Smirnova - P...MySQL Cookbook: Recipes for Developers, Alkin Tezuysal and Sveta Smirnova - P...
MySQL Cookbook: Recipes for Developers, Alkin Tezuysal and Sveta Smirnova - P...
Alkin Tezuysal
 
My first 90 days with ClickHouse.pdf
My first 90 days with ClickHouse.pdfMy first 90 days with ClickHouse.pdf
My first 90 days with ClickHouse.pdf
Alkin Tezuysal
 
How to shard MariaDB like a pro - FOSDEM 2021
How to shard MariaDB like a pro  - FOSDEM 2021How to shard MariaDB like a pro  - FOSDEM 2021
How to shard MariaDB like a pro - FOSDEM 2021
Alkin Tezuysal
 
Vitess - Data on Kubernetes
Vitess -  Data on Kubernetes  Vitess -  Data on Kubernetes
Vitess - Data on Kubernetes
Alkin Tezuysal
 
When is MyRocks good?
When is MyRocks good? When is MyRocks good?
When is MyRocks good?
Alkin Tezuysal
 
PXC (Xtradb) Failure and Recovery
PXC (Xtradb) Failure and RecoveryPXC (Xtradb) Failure and Recovery
PXC (Xtradb) Failure and Recovery
Alkin Tezuysal
 
Serverless
ServerlessServerless
Serverless
Alkin Tezuysal
 
Mysql query optimization best practices and indexing
Mysql query optimization  best practices and indexingMysql query optimization  best practices and indexing
Mysql query optimization best practices and indexing
Alkin Tezuysal
 
Proxysql use case scenarios fosdem17
Proxysql use case scenarios    fosdem17Proxysql use case scenarios    fosdem17
Proxysql use case scenarios fosdem17
Alkin Tezuysal
 
Proxysql use case scenarios plam 2016
Proxysql use case scenarios    plam 2016Proxysql use case scenarios    plam 2016
Proxysql use case scenarios plam 2016
Alkin Tezuysal
 
Building DBA as a Service (Global) Team - DBAaaST
Building DBA as a Service (Global) Team - DBAaaSTBuilding DBA as a Service (Global) Team - DBAaaST
Building DBA as a Service (Global) Team - DBAaaST
Alkin Tezuysal
 

More from Alkin Tezuysal (16)

Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Design and Modeling for MySQL SCALE 21X Pasadena, CA Mar 2024
Design and Modeling for MySQL SCALE 21X Pasadena, CA Mar 2024Design and Modeling for MySQL SCALE 21X Pasadena, CA Mar 2024
Design and Modeling for MySQL SCALE 21X Pasadena, CA Mar 2024
 
FOSSASIA - MySQL Cookbook 4e Journey APR 2023.pdf
FOSSASIA - MySQL Cookbook 4e Journey APR 2023.pdfFOSSASIA - MySQL Cookbook 4e Journey APR 2023.pdf
FOSSASIA - MySQL Cookbook 4e Journey APR 2023.pdf
 
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdfMySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
 
How OLTP to OLAP Archival Demystified
How OLTP to OLAP Archival DemystifiedHow OLTP to OLAP Archival Demystified
How OLTP to OLAP Archival Demystified
 
MySQL Cookbook: Recipes for Developers, Alkin Tezuysal and Sveta Smirnova - P...
MySQL Cookbook: Recipes for Developers, Alkin Tezuysal and Sveta Smirnova - P...MySQL Cookbook: Recipes for Developers, Alkin Tezuysal and Sveta Smirnova - P...
MySQL Cookbook: Recipes for Developers, Alkin Tezuysal and Sveta Smirnova - P...
 
My first 90 days with ClickHouse.pdf
My first 90 days with ClickHouse.pdfMy first 90 days with ClickHouse.pdf
My first 90 days with ClickHouse.pdf
 
How to shard MariaDB like a pro - FOSDEM 2021
How to shard MariaDB like a pro  - FOSDEM 2021How to shard MariaDB like a pro  - FOSDEM 2021
How to shard MariaDB like a pro - FOSDEM 2021
 
Vitess - Data on Kubernetes
Vitess -  Data on Kubernetes  Vitess -  Data on Kubernetes
Vitess - Data on Kubernetes
 
When is MyRocks good?
When is MyRocks good? When is MyRocks good?
When is MyRocks good?
 
PXC (Xtradb) Failure and Recovery
PXC (Xtradb) Failure and RecoveryPXC (Xtradb) Failure and Recovery
PXC (Xtradb) Failure and Recovery
 
Serverless
ServerlessServerless
Serverless
 
Mysql query optimization best practices and indexing
Mysql query optimization  best practices and indexingMysql query optimization  best practices and indexing
Mysql query optimization best practices and indexing
 
Proxysql use case scenarios fosdem17
Proxysql use case scenarios    fosdem17Proxysql use case scenarios    fosdem17
Proxysql use case scenarios fosdem17
 
Proxysql use case scenarios plam 2016
Proxysql use case scenarios    plam 2016Proxysql use case scenarios    plam 2016
Proxysql use case scenarios plam 2016
 
Building DBA as a Service (Global) Team - DBAaaST
Building DBA as a Service (Global) Team - DBAaaSTBuilding DBA as a Service (Global) Team - DBAaaST
Building DBA as a Service (Global) Team - DBAaaST
 

Recently uploaded

Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
ShamsuddeenMuhammadA
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 

Recently uploaded (20)

Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 

Mysql 8 vs Mariadb 10.4 Highload++ 2019

  • 1. MySQL vs MariaDB HighLoad++ 2019 Alkin Tezuysal
  • 2. Who am I? @ask_dba - Alkin Tezuysal Born to Sail, Forced to Work ❖ Open Source Database Evangelist ❖ Global Database Operations Expert ❖ Cloud Infrastructure Architect AWS ❖ Inspiring Technical and Strategic Leader ❖ Creative Team Builder ❖ Speaker, Mentor, and Coach
  • 3. Agenda ❖ Installation ❖ Authentication ❖ Storage Engines ❖ Clustering Options ❖ Routing and Proxy ❖ Security and Encryption ❖ Backup and Recovery ❖ Performance and Benchmarks 3
  • 4. Installation - MySQL 8 ❖ Straight forward MySQL Yum repos ➢ Oracle Linux, Red Hat Enterprise Linux, CentOS ➢ Also available Debian packages ❖ Fedora provides RPM packages ➢ MySQL server, client, MySQL Workbench, MySQL Utilities, MySQL Router, MySQL Shell, Connector/ODBC, Connector/Python
  • 5. Installation - MySQL 8 $curl https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm $sudo yum localinstall mysql80-community-release-el7-3.noarch.rpm $sudo yum install mysql-community-server $sudo grep 'temporary password' /var/log/mysqld.log $mysql -uroot -p > ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
  • 6. Installation - MySQL 8 (Debian) Download the repository package from: https://dev.mysql.com/get/mysql-apt- config_0.8.14-1_all.deb shell> sudo dpkg -i mysql-apt-config_0.8.14-1_all.deb Set up the version you want to install and shell> sudo apt update shell> sudo apt-get install mysql-community-server
  • 7. Installation - MySQL 8 1. The server is initialized. 2. SSL certificate and key files are generated in the data directory. 3. validate_password policy is installed and enabled: The default password policy implemented by validate_password requires that passwords contain at least one upper case letter, one lower case letter, one digit, and one special character, and that the total password length is at least 8 characters.
  • 8. Installation MariaDB 10.4 ❖ Downloadable script to install $curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash $sudo yum install MariaDB-server MariaDB-client MariaDB-shared MariaDB-backup MariaDB-common $sudo systemctl start mariadb $sudo journalctl -f -u mariadb
  • 9. Installation MariaDB 10.4 (Debian) ❖ Downloadable script to install sudo apt-get install software-properties-common dirmngr sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 sudo add-apt-repository 'deb [arch=amd64] http://mirror.biznetgio.com/mariadb/repo/10.4/debian buster main' sudo apt update sudo apt install mariadb-server
  • 10. Authentication - MySQL 8 ❖ A superuser account 'root'@'localhost is created. ❖ A password for the superuser is set and stored in the error log file. ❖ Single authentication method per user
  • 11. Authentication - MariaDB 10.4 ❖ Multiple Authentication Methods per Account ➢ The root user is created with both mysql_native_password and the unix_socket auth plugin. ➢ unix_socket matches your OS uid with a mysql user. ➢ mysql_native_password auth creates an “INVALID” password change with SET PASSWORD() classic approach.
  • 12. Storage Engines - MySQL 8 ❖ FEDERATED ❖ MEMORY ❖ InnoDB ❖ Performance_Schema ❖ MyISAM ❖ MRG_MYISAM ❖ BLACKHOLE ❖ CSV ❖ ARCHIVE
  • 13. Storage Engines - MariaDB 10.4 Default Installation (8) ❖ CSV ❖ MRG_MyISAM ❖ MEMORY ❖ Aria ❖ MyISAM ❖ SEQUENCE ❖ InnoDB ❖ PERFORMANCE_SCHEMA Plugins (6) ❖ TokuDB ❖ RocksDB ❖ Spider ❖ Connect ❖ OQGRAPH ❖ Mroonga
  • 14. Clustering Options MySQL 8 ❖ InnoDB Cluster which consists of: ➢ Group Replication (available as a plugin) ➢ MySQL Shell ➢ MySQL Router MariaDB 10.4 ❖ MariaDB Galera Cluster: ➢ Galera 4 (available in a separate package)
  • 15. Routing & Proxy MySQL 8 ❖ MySQL Router (GPLv2) [CE/EE] ❖ 3rd Party ProxySQL MariaDB 10.4 ❖ Maxscale (2.X versions are using the BSL licence)
  • 16. Security and Encryption - MySQL 8 ❖ (Data-at-Rest) Encryption ➢ MySQL System Tablespace Encryption ➢ General Tablespace Encryption ➢ Undo log ➢ Redo log ➢ Binary and relay log encryption ➢ Audit log ➢ Keyring ■ keyring_file ■ keyring_encrypted_file [E] ■ keyring_okv [E] ■ keyring_aws [E] ■ HashiCorp Vault Keyring [E]
  • 17. Security and Encryption - MariaDB 10.4 ❖ (TDE) Transparent Data Encryption ➢ Everything including all tables ➢ Individual tables ➢ Everything, excluding individual tables ❖ Key Management and Encryption Plugin ➢ Data-at-rest with Encryption Key Management ➢ File Key Management ➢ AWS Key Management ➢ Eperi Key Management ➢ Plugin API
  • 18. Security and Encryption - HC Vault MySQL 8 ❖ In MySQL 8.0.18 available as an Enterprise plugin ❖ 3rd Party ➢ Percona Server 5.7 and 8.0 MariaDB 10.4 ❖ MariaDB 10.4 has a feature request
  • 19. Data Masking MySQL 8 ❖ MySQL Enterprise Data Masking and De- Identification [EE only feature] ❖ 3rd Party: ➢ Inexpensive Datamasking for MySQL with ProxySQL [CE] MariaDB 10.4 ❖ Data masking by using MaxScale proxy
  • 20. Auditing MySQL 8 ❖ MySQL Enterprise Audit [EE] ❖ 3rd Party ➢ Percona Audit Log Plugin MariaDB 10.4 ❖ MariaDB Audit Plugin
  • 21. Backup and Recovery MySQL 8 ❖ Mysqldump ❖ Mysqlpump ❖ MySQL Enterprise Backup [EE] ❖ The Clone Plugin (8.0.17) ❖ 3rd Party ➢ Percona XtraBackup [CE] ➢ Mydumper MariaDB 10.4 ❖ Mysqldump ❖ Mariabackup ❖ 3rd Party ■ Mydumper
  • 22. Key Default Variables MySQL 8 MariaDB 10.4 innodb_autoinc_lock_mode=2 innodb_autoinc_lock_mode=1 log_bin=ON log_bin=OFF max_allowed_packet=64M max_allowed_packet=16M open_files_limit=10000 open_files_limit=4186 Query cache removed: https://mysqlserverteam.com/mysql-8- 0-retiring-support-for-the-query-cache/ query_cache_type=off But query_cache_limit=1M table_open_cache_instances=16 table_open_cache_instances=8 table_open_cache=4000 table_open_cache=2000
  • 23. Key Default Variables MySQL 8 MariaDB 10.4 thread_cache_size=9 thread_cache_size=151 binlog_format=ROW binlog_format=MIXED binlog_group_commit_sync_delay --- DEPRECATED innodb_locks_unsafe_for_binlog log_slave_updates=ON log_slave_updates=OFF sync_binlog=1 sync_binlog=0 sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TAB LES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_ DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISI ON_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_S UBSTITUTION
  • 24. Performance and Benchmarks Thanks to Dimitri Kravchuk for providing ❖ Information on Benchmarks ➢ Blog ➢ Talks ➢ Twitter
  • 31. Conclusion - MySQL 8 ❖ 8.0.0 to 8.0.5 Several Bugs Fixed ❖ 8.0.11 Deprecates uft8mb3 ❖ 8.0.12 Improves performance_schema defaults ❖ 8.0.13 Major deprecations InnoDB, Partitioning ❖ 8.0.14 Dual passwords, Lateral Derived Tables, Parallel Read of Index , GR Consistency Levels ❖ 8.0.15 Bugs Fixed ➢ InnoDB: After a checkpoint operation persisted modifications to data dictionary metadata, there was potential for new metadata changes to be lost under certain circumstances. (Bug #29120297) ➢ Group Replication was unable to function in the 8.0.14 release of MySQL Server if IPv6 support was disabled at the operating system level, even if the replication group did not use any IPv6 addresses. The issue is fixed by this release of MySQL Server, 8.0.15. (Bug #29249542, Bug #94004) ❖ If MySQL was running on the host system and within Docker, it was not possible to update or remove MySQL on the host system. (Bug #28244773, Bug #91405)8.0.0 to 8.0.11 several bug fixes ❖ 8.0.16 Account-management capabilities, deprecation of mysql_upgrade, Check Constraints, GR Auto Re-Join ❖ 8.0.17 Clone Plugin, JSON Array Indexes and Schema ❖ 8.0.18 Hash Join, Explain Analyze 31
  • 32. Conclusion - MariaDB 10.4 ❖ Authentication ➢ The unix_socket authentication plugin is now default on Unix-like systems, which is a major change to authentication in MariaDB (MDEV-12484) ➢ User password expiry (MDEV-7597) ➢ Account Locking (MDEV-13095) ➢ ...more ❖ InnoDB ➢ Added instant DROP COLUMN and changing of the order of columns (MDEV-15562) ➢ More Instant VARCHAR extension or ROW_FORMAT=DYNAMIC and ROW_FORMAT=COMPACT (MDEV-15563) ➢ Reduced redo log volume for undo tablespace initialization (MDEV-17138) ➢ Removed crash-upgrade support for pre-10.2.19 TRUNCATE TABLE (MDEV-13564) ❖ Optimizer ➢ Implementation of the optimizer trace, one can enable the optimizer trace by enabling the system variable optimizer_trace (MDEV-6111) ❖ Galera ➢ In MariaDB 10.4.2 and later, Galera has been upgraded from Galera 3 to Galera 4. 32 Ref:https://mariadb.com/kb/en/library/changes-improvements-in-mariadb-104/
  • 33. Special Thanks to... ❖ Daniel Guzman Burgos ❖ Stephen Thorn ❖ Hrvoje Matijakovic ❖ Sveta Smirnova @svetsmirnova ❖ Engineering, Experts and Services Teams at Percona 33