Tutorial Linux (IGN
Distro)
Pada umumnya
menjalankan perintah MariaDB menggunakan command line adalah dengan
masuk ke antar muka databasenya (interface), seperti contoh
menampilkan nilai “data” dari sebuah database bernama “databes”:
mysql -u root
-p<password>
Welcome to the
MariaDB monitor. Commands end with ; or \g.
Your MariaDB
connection id is 2
Server version:
10.1.20-MariaDB MariaDB Server
Copyright (c) 2000,
2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h'
for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
use databes
MariaDB [databes]>
MariaDB [databes]>
select*from data;
Namun jika ingin
mengeksekusi menggunakan perintah langsung dari perintah bash,
gunakan perintah berikut:
mysql -u root
-p<password> databes -e “select*from data”
Selamat mencoba
IGN User