mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-06 00:31:10 +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"
|