# Migration DB Server to MariaDBS

## About

The instruction is aimed to migrate existing databases running on MySQL to required MariaDB version.

## Migration

To reduce downtime during migration you may install MariaDB as Docker container so both MariaDB and MySQL work simultaneously. For this you need:

- Install Docker

- Run script `mysql_migrate.sh` which does all work of database migration for you

After successful migration to MariaDB in Docker, you may install MariaDB on host instead of MySQL and migrate to it.

To view the MariaDB-in-container logs:

    docker logs mariadb

To view the container status:

    docker ps