From 88c77ba4d9bba415f8e7c36cf5505d798ceee938 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sat, 23 Jul 2022 17:00:03 -0400 Subject: [PATCH] fixing MySQL commands --- ubuntu/wp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ubuntu/wp b/ubuntu/wp index d4fd45a..fc34ec4 100644 --- a/ubuntu/wp +++ b/ubuntu/wp @@ -57,9 +57,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"