1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-09 01:07:16 +01:00
SqMod/vendor/POCO/Data/MySQL/testsuite/run-db-setup.sh

16 lines
350 B
Bash
Raw Normal View History

2023-03-23 19:19:11 +01:00
#!/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"