1. login ke server terlebih dahulu
# ssh root@debian9
# sudo apt upgrade
2. Configure Mysql ppa
# wget http://repo.mysql.com/mysql-apt-config_0.8.13-1_all.deb
# sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb
Ketika tampil seperti ini maka pilih bada bagian MySQL 5.7 atau 5.6
3. Install MySQL di Debian 9
# sudo apt update
# sudo apt install mysql-server
Isikan password root mysql kalian
4. Secure MySQL Installation
Restart mysql kalian dengan cara
# sudo systemctl restart mysql
selanjut nya ketik
# sudo mysql_secure_installation
5. Connect MySQL
mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.21 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
sumber : https://tecadmin.net/install-mysql-server-on-debian9-stretch/




