2022-10-18 22:50:26 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
|
|
|
read -p "Would you like to install MariaDB? (y/n) " go
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "$go" == 'n' ]; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
apt update && apt upgrade -y
|
|
|
|
sudo apt install wget software-properties-common dirmngr ca-certificates apt-transport-https -y
|
|
|
|
sudo apt install mariadb-server mariadb-client -y
|
2022-10-19 20:49:54 -07:00
|
|
|
echo -e "=================================================================="
|
|
|
|
echo "Time to Configure MariaDB."
|
|
|
|
echo "Don't Know what to do? I can help!"
|
|
|
|
echo "1. Root password just click ENTER as there is no password"
|
|
|
|
echo "2. Switch to unix_socket authentication select. n"
|
|
|
|
echo "3. Change the root password? Y"
|
|
|
|
echo "4. Remove anonymous users? Y "
|
|
|
|
echo "5. Disallow root login remotely? y, But if it's local it's fine to say no."
|
|
|
|
echo "6. Remove test database and access to it? Y"
|
|
|
|
echo "7. Reload privilege tables now? Y"
|
|
|
|
echo -e "=================================================================="
|
|
|
|
sleep 5
|
2022-10-19 21:39:21 -07:00
|
|
|
sudo mysql_secure_installation
|
|
|
|
|
|
|
|
echo "If you want to install phpMyAdmin run wget -O pmainstall.sh https://sop.wtf/sh/pmainstall && bash pmainstall.sh"
|