diff --git a/dev_mvc/tests/createdb/index.php b/dev_mvc/tests/createdb/index.php new file mode 100644 index 0000000..86a4dde --- /dev/null +++ b/dev_mvc/tests/createdb/index.php @@ -0,0 +1,24 @@ +exec("CREATE DATABASE `$db`; + CREATE USER '$user'@'localhost' IDENTIFIED BY '$pass'; + GRANT ALL ON `$db`.* TO '$user'@'localhost'; + FLUSH PRIVILEGES;") + or die(print_r($dbh->errorInfo(), true)); + + } catch (PDOException $e) { + die("DB ERROR: ". $e->getMessage()); + } +?> \ No newline at end of file