mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-09 01:07:16 +01:00
16 lines
350 B
Bash
16 lines
350 B
Bash
|
#!/bin/bash
|
||
|
#apt-get install mariadb-server
|
||
|
USER=pocotest
|
||
|
PASS=pocotest
|
||
|
|
||
|
mysql -uroot <<MYSQL_SCRIPT
|
||
|
CREATE DATABASE pocotest;
|
||
|
CREATE USER '$USER'@'localhost' IDENTIFIED BY '$PASS';
|
||
|
GRANT ALL PRIVILEGES ON pocotest.* TO '$USER'@'localhost';
|
||
|
FLUSH PRIVILEGES;
|
||
|
MYSQL_SCRIPT
|
||
|
|
||
|
echo "MySQL user created."
|
||
|
echo "Username: $USER"
|
||
|
echo "Password: $PASS"
|