Compare commits

..

No commits in common. "c8b74aeed92ca8cd9f903a552a8005fed542ce9a" and "bfc31bc1c215180425449619d276b71e3aa084cb" have entirely different histories.

View File

@ -41,13 +41,11 @@ sudo a2enmod rewrite
notif "Installing MySQL 8"
echo "Installing MySQL 8"
echo "deb http://ports.ubuntu.com/ubuntu-ports/ jammy-proposed main universe" >> /etc/apt/sources.list
apt update
DEBIAN_FRONTEND=noninteractive apt-get -y install mariadb-server mariadb-client
DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-server mysql-client
echo "Starting MySQL 8"
service mariadb start
service mysql start
notif "Sleeping for 5 seconds to allow MySQL to start."
echo "Sleeping 5 seconds to allow MySQL to start"
sleep 5
@ -57,9 +55,9 @@ DBNAME=$(openssl rand -hex 12)
USERNAME=$(openssl rand -hex 12)
PASSWORD=$(openssl rand -hex 12)
mariadb -uroot -e "CREATE DATABASE $DBNAME CHARACTER SET utf8 COLLATE utf8_general_ci";
mariadb -uroot -e "CREATE USER $USERNAME@'127.0.0.1' IDENTIFIED BY '$PASSWORD'";
mariadb -uroot -e "GRANT ALL PRIVILEGES ON $DBNAME.* TO '$USERNAME'@'127.0.0.1'";
mysql -uroot -e "CREATE DATABASE $DBNAME CHARACTER SET utf8 COLLATE utf8_general_ci";
mysql -uroot -e "CREATE USER $USERNAME@'127.0.0.1' IDENTIFIED BY '$PASSWORD'";
mysql -uroot -e "GRANT ALL PRIVILEGES ON $DBNAME.* TO '$USERNAME'@'127.0.0.1'";
notif "We have created the following Database information for this installaton: Database:$DBNAME|Username:$USERNAME|Password:$PASSWORD"