# Debian - Upgrade MySQL to MariaDB

DevFeed: [Debian - Upgrade MySQL to MariaDB](<https://devfeed.tech/articles/debian-upgrade-mysql-to-mariadb-27603.md>)

Original publisher: [Read original article](<https://gagor.pro/2014/01/debian-upgrade-mysql-to-mariadb/>)

Author: Tom

Published: 2014-01-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Debian](<https://devfeed.tech/topics/debian.md>), [MariaDB](<https://devfeed.tech/topics/mariadb.md>), [upgrade](<https://devfeed.tech/topics/upgrade.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [apt](<https://devfeed.tech/topics/apt.md>), [migration](<https://devfeed.tech/topics/migration.md>)

Tags: [apt](<https://devfeed.tech/tags/apt.md>), [debian](<https://devfeed.tech/tags/debian.md>), [install](<https://devfeed.tech/tags/install.md>), [installation](<https://devfeed.tech/tags/installation.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [migration](<https://devfeed.tech/tags/migration.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [repo](<https://devfeed.tech/tags/repo.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

## AI overview

A practical guide to upgrading MySQL to MariaDB on Debian. It covers adding the MariaDB repository and key, installing the relevant packages, and using repository pinning to prevent Debian packages from switching the installation back to MySQL. The author reports that blog page generation time decreased from about 650 ms to 550 ms after the migration.

## Source excerpt

After reading some good opinions about MariaDB I wanted to give it a try. Upgrade looks quite straight forward but I found some issues a little tricky. Installation Add repo and key: cat > /etc/apt/sources.list <<SRC deb http://mirrors.supportex.net/mariadb/repo/5.5/debian wheezy main deb-src http://mirrors.supportex.net/mariadb/repo/5.5/debian wheezy main SRC (find more repositories here external link ) Now install MariaDB: sudo apt-get update sudo apt-get install mariadb-server It could be better to install mariadb-server-5.5 and mariadb-client-5.5 package instead, because of this error external link .