Debian / Ubuntu:
- apt-get install mysql-server mysql-client
- service mysql stop
- rm /var/lib/mysql/ib_logfile*
CentOS 7 or later:
- yum -y install mariadb-server
Others:
- yum -y install mysql-server
Note that on some recent distributions, such as Fedora 20 or later, installing mysql will actually install mariadb.