Cara Install MariaDB 10 di Ubuntu 12.04
Tambah Repository MariaDB
1 2 3 | sudo apt-get install python-software-properties sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://mariadb.biz.net.id//repo/10.0/ubuntu precise main' |
Untuk distro lain cek di downloads.mariadb.org
Update dan Install
1 2 | sudo apt-get update sudo apt-get install mariadb-server |
Jika sebelumnya sudah terinstall MySQL maka terlebih dahulu akan diuninstall
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libaio1 libmariadbclient18 libmysqlclient18 mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server-10.0 mariadb-server-core-10.0 mysql-common Suggested packages: tinyca mailx mariadb-test The following packages will be REMOVED: mysql-client-5.5 mysql-client-core-5.5 mysql-server mysql-server-5.5 mysql-server-core-5.5 The following NEW packages will be installed: libaio1 libmariadbclient18 mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server mariadb-server-10.0 mariadb-server-core-10.0 The following packages will be upgraded: libmysqlclient18 mysql-common 2 upgraded, 8 newly installed, 5 to remove and 95 not upgraded. Need to get 35.0 MB of archives. After this operation, 29.8 MB of additional disk space will be used. Do you want to continue [Y/n]? |
Setelah selesai coba login ke MariaDB
1 | mysql -u root -p |
Hasilnya
1 2 3 4 5 6 7 8 9 | Welcome to the MariaDB monitor. Commands end with ; or g. Your MariaDB connection id is 51 Server version: 10.0.10-MariaDB-1~precise-log mariadb.org binary distribution Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. MariaDB [(none)]> |
Akses MariaDB menggunakan phpMyAdmin
selamat mencoba 🙂