rr-quickcheck MySQL: simplify scripts.

This commit is contained in:
Kei Hibino 2017-01-26 09:36:24 +09:00
parent d316472332
commit ce780aaf28
4 changed files with 4 additions and 23 deletions

View File

@ -1,15 +0,0 @@
#!/bin/sh
set -x
. ./sh
createdb_command() {
cat <<EOF
CREATE SCHEMA ARBITRARY0;
GRANT ALL ON ARBITRARY0.* TO ${USER}@'localhost';
GRANT GRANT OPTION ON ARBITRARY0.* TO ${USER}@'localhost';
EOF
}
do_mysql_root createdb_command

View File

@ -8,4 +8,4 @@ main =
defaultMain . tests $
connectMySQL
defaultMySQLConnectInfo
{ mysqlUser = "", mysqlPassword = "testpassword", mysqlDatabase = "ARBITRARY0" }
{ mysqlUser = "hrr-tester", mysqlDatabase = "ARBITRARY0" }

View File

@ -0,0 +1,3 @@
CREATE SCHEMA ARBITRARY0;
GRANT ALL ON ARBITRARY0.* TO 'hrr-tester'@'127.0.0.1';
GRANT GRANT OPTION ON ARBITRARY0.* TO 'hrr-tester'@'127.0.0.1';

View File

@ -1,7 +0,0 @@
## -*- sh -*-
do_mysql_root() {
cmd=$1
$cmd
$cmd | mysql -p -u root
}