Both MariaDB and MySQL are open source databases that use SQL and share the same original codebase. MariaDB is a drop-in replacement for MySQL, so much so that you use the same command (mysql) to interact with MySQL and MariaDB databases. This article, therefore, applies equally to MariaDB and MySQL.read more
Source: LXer – Install MariaDB or MySQL on Linux