Pertama kita buka command from melalui menu start ataupun dengan shortcut windows+R, kemudian ketikan cmd lalu Ok.
Setelah masuk pada command promp, kemudian kita cari dan menjalankan mysql kita. Sebelum mencari kita diharuskan mengkatifkan apache dan Mysql kita yang ada di XAMPP.
Berikut ini langkah menjalankan aplikasi mysql memalui cmd.
C:\Users\Asus>cd/ ( change directory )
C:\>dir ( directory )
Volume in drive C is OS
Volume Serial Number is 36F0-1E75
Directory of C:\
07/12/2019 11:10 AM <DIR> composer
10/30/2018 03:37 PM <DIR> cvavr2
01/08/2019 03:45 PM <DIR> Downloads
08/09/2018 01:54 AM <DIR> eSupport
12/04/2018 09:25 PM <DIR> inetpub
07/17/2019 08:28 AM <DIR> Program Files
08/15/2019 12:08 AM <DIR> Program Files (x86)
07/11/2019 07:16 PM <DIR> puskesmas
07/11/2019 08:21 PM 11,980,753 puskesmas.rar
12/11/2018 06:34 PM <DIR> Users
08/15/2019 10:04 AM <DIR> Windows
05/10/2019 10:56 AM <DIR> xampp <====== Tujuan
1 File(s) 11,980,753 bytes
11 Dir(s) 399,872,708,608 bytes free
C:\>
cd xampp ( change directory xampp )
C:\xampp>
cd mysql ( change directory mysql )
C:\xampp\mysql>
cd bin ( change directory bin )
C:\xampp\mysql\bin>
mysql.exe -u root ( execute aplikasi )
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 10.1.38-MariaDB mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.