Install MysqlDB dan PHPmyadmin di debian 8

Install MysqlDB dan PHPmyadmin di debian 8

Yo yo para readers. Pagi ini admin akan melanjutkan tutorial kemaren yang berhubungan dengan Membuat Ujian Online dengan CBT BeeSmart dan ZYACBT. Langkah selanjutnya adalah Install MysqlDB dan PHPmyadmin di debian 8.

Sebelumnya kita sudah melakukan Tutorial Install Nginx Webserver dan PHP 5 di Debian 8. Nah jadi sekarang waktunya install Database dan Phpmyadmin nya buat manajemen.

Langsung saja kuylah ke tutorialnya

Pertama lakukan installasi mysql nya dengan menggunakan perintah

sudo apt-get install mysql-server mysql-common mysql-client

Jika ditanya New password for root user jangan diisi langsung ok saja. Jika kalian sudah mahir dan mampu mentrouble jika ada masalah ya silahkan saja.

setelah menginstall kita harus mengaktifkan mysql dengan perintah

sudo systemctl start mysql

setelah itu lakukan konfigurasi dengan menggunakan perintah

sudo mysql_secure_installation

Saat melakukan konfigurasi yang harus kita lakukan saat di tanyai oleh sistem adalah menekan

  1. Enter
  2. n
  3. n
  4. n
  5. n
  6. y

Berikut contoh dari admin :

$NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n] n
... skipping.

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] n
... skipping.

Normally, root should only be allowed to connect from 'https://itclax.com'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] n
... skipping.

By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] n
... skipping.

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] Y
... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

Sekarang waktunya untuk mendownload php myadmin, kalian bisa mendownload di https://www.phpmyadmin.net/downloads. Atau jika kalian ingin langsung mndownloadnya kalian bisa download langsung https://files.phpmyadmin.net/phpMyAdmin/4.8.5/phpMyAdmin-4.8.5-all-languages.zip.

Setelah selesai mendownload pastikan kalian ekstract zip dari file php my admin di direktori webserver kalian. Jika kemarin kita membuatnya di /home/$USER/www maka ekstract disitu.

Setelah itu kita buka phpmyadmin nya di domainkamu.com/phpmyadmin atau jika kalian memasang nya di directori domain https://itclax.com/phpmyadmin.

Lalu login dengan user root dan password dikosongi, karena kita menggunakan password kosong seperti yang kita setting diatas tadi.

Jika user root tidak diijinkan login kalian perlu mensetting php myadmin agar root user bisa login untuk caranya kalian klik Menginjinkan Root Login PHPMYADMIN Tanpa Password.

Oke sekian yang dapat admin sampaikan semoga bermanfaat, untuk tutorial pengetesan ZYA CBT nya tunggu update selanjutnya babay 😀

You may also like...

Tinggalkan Balasan