sudo DEBIAN_FRONTEND=noninteractive apt install -y mysql-server
sudo mysqld_safe &
echo "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ''" | sudo mysql
mysql -uroot
phpMyAdminのインストール
wget https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip
unzip phpMyAdmin-5.2.1-all-languages.zip
cd phpMyAdmin-5.2.1-all-languages/
cp config.sample.inc.php config.inc.php
echo '$cfg["Servers"][$i]["auth_type"] = "config";' >> config.inc.php
echo '$cfg["Servers"][$i]["AllowNoPassword"] = true;' >> config.inc.php
php -S localhost:8080
あとは開きましょう