forked from snxraven/autoinstallers
fixing MySQL commands
This commit is contained in:
parent
e5b935aede
commit
88c77ba4d9
@ -57,9 +57,9 @@ DBNAME=$(openssl rand -hex 12)
|
|||||||
USERNAME=$(openssl rand -hex 12)
|
USERNAME=$(openssl rand -hex 12)
|
||||||
PASSWORD=$(openssl rand -hex 12)
|
PASSWORD=$(openssl rand -hex 12)
|
||||||
|
|
||||||
mariadb -uroot -e "CREATE DATABASE $DBNAME CHARACTER SET utf8 COLLATE utf8_general_ci";
|
mysql -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'";
|
mysql -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 "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"
|
notif "We have created the following Database information for this installaton: Database:$DBNAME|Username:$USERNAME|Password:$PASSWORD"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user