mysql -u root -p".Step 1 :
Prepare for installation of MariaDB
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1BB943DBStep 2 :
sudo nano /etc/apt/sources.list.d/mariadb.listAppend the following lines.
deb http://mirrors.xmission.com/mariadb/repo/5.2/ubuntu maverick main
deb-src http://mirrors.xmission.com/mariadb/repo/5.2/ubuntu maverick mainSave the change and install the following.
Step 3 :
sudo apt-get updatesudo apt-get install mariadb-server mariadb-client** You can also replace your MySQL to MariaDB in this way. The MySQL will be uninstall automatically. You can also use the
my.cnf of MySQL without any problem or replace by the new one.Step 4 : (Optional)
To tune the performance of MariaDB is the same as tuning MySQL. Please see this link for reference. The settings are the same.
That's all! See you.