Migrate from MySQL to MariaDB (Ubuntu)

preview_player
Показать описание
How to migrate from MySQL to MariaDB databases. Includes steps to backup MySQL, uninstall MySQL, install and secure MariaDB, and then import MySQL data.

COMMON ISSUES:
ERROR 1273 (HY000) at line 24: Unknown collation: 'utf8mb4_0900_ai_ci'
Fix for this error shown at 6:44

ERROR 1050 (42S01) at line 925: Table 'user' already exists
Fix for this error shown at 8:08

=== NOTES ===

=== CHAPTERS ===
00:00 Intro
00:42 Backup MySQL databases
01:50 Uninstall MySQL
02:52 Install MariaDB
04:02 Secure MariaDB
06:24 Import backup
09:07 Checking imported data via mysql command prompt

=== RELATED VIDEOS ===
MySQL Command Line - Database and User Creation

Simple Command Line Text Editing with Nano

=== PRODUCTS I USE ===
(paid links)
Рекомендации по теме
Комментарии
Автор

Thank you! This worked perfectly on ubuntu server 24.04

antsarcade
Автор

Thank you so much. Very clear explanation.

vpugliese
Автор

Interesting, but I am also confused. 'Mysql is an alias for the underlying mariadb'. If, as I am planning to do, migrate from shared hosting with MySQL to Caprover w/ Docker, which has Wordpress with MySQL and Mariadb for Moodle, then how will the command distinguish between the two databases?
Thanks.

barkingbandicoot
Автор

Hello
I successfully migrated from MySQL 8 to MariaDB with the exact method in your video but the hard way.
My server is in Digitalocean and hosts two WordPress websites with Nginx. After migration, I found that the website loading time was extremely slow compared to MySQL.
Why would this happen if the MariaDB is the improved version of MySQL?
I switched to mariadb because I have one more application that runs on mariadb but now I'm stuck with slow webpage loading. Can you recommend what to check in the server configuration to improve this?

CheamPhyruostech