Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-popular-posts domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/koalabiru.my.id/httpdocs/wp-includes/functions.php on line 6121
Instalasi MariaDB pada Ubuntu 18.04 – Koalabiru

Instalasi MariaDB pada Ubuntu 18.04

Pada kali ini penulis akan menjeleskan bagaimana cara menginstall MariaDB pada server anda, pada kali ini pada server Ubuntu 18.04

Langkah 1 – Install MariaDB

Update Ubuntu terlebih dahulu lalu install MariaDB

$ sudo apt update
$ sudo apt install mariadb-server -y

Langkah 2 – Konfigurasi MariaDB

Pertama jalankan perinta untuk blok remote root login dan remove database users yang tidak terpakai

$ sudo mysql_secure_installation

Lalu muncul beberapa prompt :

Pertama : current database root password -> (Enter) none

Kedua : Set up database root password -> type N

Ketiga : Remove anonymous users -> type  Y

Keempat : Dissalow root login remotely -> type Y

Kelima : Remove test database and access -> type Y

Keenam : Reload privilege tables now -> type Y

Langkah 3 (Optional ) – Mengatur User Authenticatiin dan Privileges

Untuk mengatur bisa masuk ke mysql mariadb nya dulu, kita mencobanya menggunakan akun bernama “admin”

$sudo mysql

Lalu gunakan command berikut pada MariaDB

GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;

FLUSH PRIVILEGES;


exit


Langkah 4 – Test MariaDB

Untuk melihat service sudah berjalan atau belum dapat menggunakan command berikut

$ sudo systemctl status mariadb

Tambahan :

Untuk restart MariaDB menggunakan command

$ sudo systemctl start mariadb

Untuk melihat versi

$ sudo mysqladmin version

I Hear and I Forget
I See and I Remember
I Do and I Understand

Confucius

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *