From d6e864028c7d3e88ee84729540b067381219a6f2 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Tue, 14 Feb 2017 23:52:49 +0000 Subject: [PATCH] Update to mtach scripts --- conf/config.inc.php | 2 +- conf/create_db.sql | 10 +++++----- conf/nginx.conf | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/config.inc.php b/conf/config.inc.php index 58d8bed..19a8862 100644 --- a/conf/config.inc.php +++ b/conf/config.inc.php @@ -57,7 +57,7 @@ $cfg['Servers'][$i]['controluser'] = 'YNH_PMA_USER'; $cfg['Servers'][$i]['controlpass'] = 'YNH_PMA_PASSWORD'; /* Storage database and tables */ -$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; +$cfg['Servers'][$i]['pmadb'] = 'YNH_PMA_USER'; $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; $cfg['Servers'][$i]['relation'] = 'pma__relation'; $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; diff --git a/conf/create_db.sql b/conf/create_db.sql index aaf4d14..b7dc28e 100644 --- a/conf/create_db.sql +++ b/conf/create_db.sql @@ -14,14 +14,14 @@ -- -------------------------------------------------------- -DROP DATABASE `phpmyadmin`; +DROP DATABASE `YNH_PMA_USER`; -- --- Database : `phpmyadmin` +-- Database : `YNH_PMA_USER` -- -CREATE DATABASE IF NOT EXISTS `phpmyadmin` +CREATE DATABASE IF NOT EXISTS `YNH_PMA_USER` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -USE phpmyadmin; +USE YNH_PMA_USER; -GRANT SELECT, INSERT, DELETE, UPDATE ON `phpmyadmin`.* TO +GRANT SELECT, INSERT, DELETE, UPDATE ON `YNH_PMA_USER`.* TO 'YNH_PMA_USER'@localhost; diff --git a/conf/nginx.conf b/conf/nginx.conf index 4a7d958..ab20536 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,5 @@ location YNH_WWW_PATH { - alias YNH_WWW_ALIAS ; + alias YNH_WWW_ALIAS/ ; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; }