瀏覽代碼

add script to configure mysql

Oz N Tiram 9 年之前
父節點
當前提交
9c68af8726
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      tests/config_mysql.sh

+ 6 - 0
tests/config_mysql.sh

@@ -0,0 +1,6 @@
+#!/bin/bash
+mysql -u root -p << END
+create database pwmantesta;
+create user 'pwman'@'localhost' IDENTIFIED BY '123456';
+grant all on pwmantest.* to 'pwman'@'localhost';
+END