diff --git a/tool/quick_start_win10/LICENSE.md b/tool/quick_start_win10/LICENSE.md new file mode 100644 index 000000000..fdddb29aa --- /dev/null +++ b/tool/quick_start_win10/LICENSE.md @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/tool/quick_start_win10/external/mariadb_setup.bat b/tool/quick_start_win10/external/mariadb_setup.bat new file mode 100644 index 000000000..a859ff53b --- /dev/null +++ b/tool/quick_start_win10/external/mariadb_setup.bat @@ -0,0 +1,21 @@ +@echo off +cd mariadb +title MariaDB +echo MariaDB on localhost:9040 +echo Launch `cmd_tools.bat` and run `mysql --port=9040` to connect +@echo on +if not exist ..\..\pipeline\shard_dev\mysql\my.ini goto :setup +goto :done +:setup +.\bin\mysql_install_db --default-user --datadir=..\..\pipeline\shard_dev\mysql +if %errorlevel% neq 0 pause +if not exist ..\phpmyadmin.sql goto :done +start .\bin\mysqld --no-defaults --port=9040 --datadir=..\..\pipeline\shard_dev\mysql --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --standalone +if %errorlevel% neq 0 pause +.\bin\mysql -P 9040 -u root < ..\phpmyadmin.sql +if %errorlevel% neq 0 pause +.\bin\mysqladmin -u root -P 9040 shutdown +if %errorlevel% neq 0 pause +:done +rem .\bin\mysqld --no-defaults --port=9040 --datadir=..\..\pipeline\shard_dev\mysql --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --console --standalone +cd .. diff --git a/tool/quick_start_win10/external/nginx_setup.bat b/tool/quick_start_win10/external/nginx_setup.bat new file mode 100644 index 000000000..68ac5f1a9 --- /dev/null +++ b/tool/quick_start_win10/external/nginx_setup.bat @@ -0,0 +1,48 @@ +@echo off +title NGINX +echo NGINX on http://localhost:9042/ +if /I "%RC_ROOT%"=="" call ..\path_config.bat +copy config.inc.php .\phpmyadmin\config.inc.php +cd nginx +for /f "usebackq delims=" %%i in ( + `powershell -noprofile -c "\"%RC_ROOT%\" -replace '\\', '/'"` +) do set "RC_ROOT_FW=%%i" +( +echo worker_processes 1; +echo events { +echo worker_connections 1024; +echo } +echo http { +echo include mime.types; +echo default_type application/octet-stream; +echo sendfile on; +echo keepalive_timeout 65; +echo server { +echo listen 9042; +echo server_name localhost; +echo root %RC_ROOT_FW%/code/web/public_php; +echo index index.php index.html index.htm; +echo location ~ /\.ht { +echo deny all; +echo } +echo location /phpmyadmin { +echo root %RC_ROOT_FW%/external; +echo location ~ ^^/phpmyadmin/^(.+\.php^)$ { +echo fastcgi_pass 127.0.0.1:9041; +echo fastcgi_index index.php; +echo fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; +echo include fastcgi_params; +echo } +echo } +echo location ~ \.php$ { +echo fastcgi_pass 127.0.0.1:9041; +echo fastcgi_index index.php; +echo fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; +echo include fastcgi_params; +echo } +echo } +echo } +)> .\conf\nginx.conf +@echo on +rem nginx +cd .. diff --git a/tool/quick_start_win10/external/phpmyadmin.sql b/tool/quick_start_win10/external/phpmyadmin.sql new file mode 100644 index 000000000..ac1ac9679 --- /dev/null +++ b/tool/quick_start_win10/external/phpmyadmin.sql @@ -0,0 +1,468 @@ +-- phpMyAdmin SQL Dump +-- version 5.1.0 +-- https://www.phpmyadmin.net/ +-- +-- Host: localhost:9040 +-- Generation Time: Jun 21, 2021 at 03:09 AM +-- Server version: 10.5.10-MariaDB +-- PHP Version: 7.4.20 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `phpmyadmin` +-- +CREATE DATABASE `phpmyadmin`; +USE `phpmyadmin` + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__bookmark` +-- + +CREATE TABLE `pma__bookmark` ( + `id` int(10) UNSIGNED NOT NULL, + `dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', + `user` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', + `label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '', + `query` text COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Bookmarks'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__central_columns` +-- + +CREATE TABLE `pma__central_columns` ( + `db_name` varchar(64) COLLATE utf8_bin NOT NULL, + `col_name` varchar(64) COLLATE utf8_bin NOT NULL, + `col_type` varchar(64) COLLATE utf8_bin NOT NULL, + `col_length` text COLLATE utf8_bin DEFAULT NULL, + `col_collation` varchar(64) COLLATE utf8_bin NOT NULL, + `col_isNull` tinyint(1) NOT NULL, + `col_extra` varchar(255) COLLATE utf8_bin DEFAULT '', + `col_default` text COLLATE utf8_bin DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Central list of columns'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__column_info` +-- + +CREATE TABLE `pma__column_info` ( + `id` int(5) UNSIGNED NOT NULL, + `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `column_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `comment` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '', + `mimetype` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '', + `transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', + `transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', + `input_transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', + `input_transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column information for phpMyAdmin'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__designer_settings` +-- + +CREATE TABLE `pma__designer_settings` ( + `username` varchar(64) COLLATE utf8_bin NOT NULL, + `settings_data` text COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Settings related to Designer'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__export_templates` +-- + +CREATE TABLE `pma__export_templates` ( + `id` int(5) UNSIGNED NOT NULL, + `username` varchar(64) COLLATE utf8_bin NOT NULL, + `export_type` varchar(10) COLLATE utf8_bin NOT NULL, + `template_name` varchar(64) COLLATE utf8_bin NOT NULL, + `template_data` text COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved export templates'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__favorite` +-- + +CREATE TABLE `pma__favorite` ( + `username` varchar(64) COLLATE utf8_bin NOT NULL, + `tables` text COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Favorite tables'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__history` +-- + +CREATE TABLE `pma__history` ( + `id` bigint(20) UNSIGNED NOT NULL, + `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `timevalue` timestamp NOT NULL DEFAULT current_timestamp(), + `sqlquery` text COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='SQL history for phpMyAdmin'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__navigationhiding` +-- + +CREATE TABLE `pma__navigationhiding` ( + `username` varchar(64) COLLATE utf8_bin NOT NULL, + `item_name` varchar(64) COLLATE utf8_bin NOT NULL, + `item_type` varchar(64) COLLATE utf8_bin NOT NULL, + `db_name` varchar(64) COLLATE utf8_bin NOT NULL, + `table_name` varchar(64) COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Hidden items of navigation tree'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__pdf_pages` +-- + +CREATE TABLE `pma__pdf_pages` ( + `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `page_nr` int(10) UNSIGNED NOT NULL, + `page_descr` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT '' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='PDF relation pages for phpMyAdmin'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__recent` +-- + +CREATE TABLE `pma__recent` ( + `username` varchar(64) COLLATE utf8_bin NOT NULL, + `tables` text COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Recently accessed tables'; + +-- +-- Dumping data for table `pma__recent` +-- + +INSERT INTO `pma__recent` (`username`, `tables`) VALUES +('root', '[{\"db\":\"phpmyadmin\",\"table\":\"pma__export_templates\"},{\"db\":\"phpmyadmin\",\"table\":\"pma__central_columns\"},{\"db\":\"phpmyadmin\",\"table\":\"pma__bookmark\"}]'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__relation` +-- + +CREATE TABLE `pma__relation` ( + `master_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `master_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `master_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `foreign_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `foreign_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `foreign_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Relation table'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__savedsearches` +-- + +CREATE TABLE `pma__savedsearches` ( + `id` int(5) UNSIGNED NOT NULL, + `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `search_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `search_data` text COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved searches'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__table_coords` +-- + +CREATE TABLE `pma__table_coords` ( + `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `pdf_page_number` int(11) NOT NULL DEFAULT 0, + `x` float UNSIGNED NOT NULL DEFAULT 0, + `y` float UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table coordinates for phpMyAdmin PDF output'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__table_info` +-- + +CREATE TABLE `pma__table_info` ( + `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', + `display_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table information for phpMyAdmin'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__table_uiprefs` +-- + +CREATE TABLE `pma__table_uiprefs` ( + `username` varchar(64) COLLATE utf8_bin NOT NULL, + `db_name` varchar(64) COLLATE utf8_bin NOT NULL, + `table_name` varchar(64) COLLATE utf8_bin NOT NULL, + `prefs` text COLLATE utf8_bin NOT NULL, + `last_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Tables'' UI preferences'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__tracking` +-- + +CREATE TABLE `pma__tracking` ( + `db_name` varchar(64) COLLATE utf8_bin NOT NULL, + `table_name` varchar(64) COLLATE utf8_bin NOT NULL, + `version` int(10) UNSIGNED NOT NULL, + `date_created` datetime NOT NULL, + `date_updated` datetime NOT NULL, + `schema_snapshot` text COLLATE utf8_bin NOT NULL, + `schema_sql` text COLLATE utf8_bin DEFAULT NULL, + `data_sql` longtext COLLATE utf8_bin DEFAULT NULL, + `tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') COLLATE utf8_bin DEFAULT NULL, + `tracking_active` int(1) UNSIGNED NOT NULL DEFAULT 1 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database changes tracking for phpMyAdmin'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__userconfig` +-- + +CREATE TABLE `pma__userconfig` ( + `username` varchar(64) COLLATE utf8_bin NOT NULL, + `timevalue` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `config_data` text COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User preferences storage for phpMyAdmin'; + +-- +-- Dumping data for table `pma__userconfig` +-- + +INSERT INTO `pma__userconfig` (`username`, `timevalue`, `config_data`) VALUES +('root', '2021-06-21 03:08:02', '{\"Console\\/Mode\":\"collapse\",\"ShowDatabasesNavigationAsTree\":false,\"Server\\/hide_db\":\"\",\"Server\\/only_db\":\"\"}'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__usergroups` +-- + +CREATE TABLE `pma__usergroups` ( + `usergroup` varchar(64) COLLATE utf8_bin NOT NULL, + `tab` varchar(64) COLLATE utf8_bin NOT NULL, + `allowed` enum('Y','N') COLLATE utf8_bin NOT NULL DEFAULT 'N' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User groups with configured menu items'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pma__users` +-- + +CREATE TABLE `pma__users` ( + `username` varchar(64) COLLATE utf8_bin NOT NULL, + `usergroup` varchar(64) COLLATE utf8_bin NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and their assignments to user groups'; + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `pma__bookmark` +-- +ALTER TABLE `pma__bookmark` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `pma__central_columns` +-- +ALTER TABLE `pma__central_columns` + ADD PRIMARY KEY (`db_name`,`col_name`); + +-- +-- Indexes for table `pma__column_info` +-- +ALTER TABLE `pma__column_info` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`); + +-- +-- Indexes for table `pma__designer_settings` +-- +ALTER TABLE `pma__designer_settings` + ADD PRIMARY KEY (`username`); + +-- +-- Indexes for table `pma__export_templates` +-- +ALTER TABLE `pma__export_templates` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `u_user_type_template` (`username`,`export_type`,`template_name`); + +-- +-- Indexes for table `pma__favorite` +-- +ALTER TABLE `pma__favorite` + ADD PRIMARY KEY (`username`); + +-- +-- Indexes for table `pma__history` +-- +ALTER TABLE `pma__history` + ADD PRIMARY KEY (`id`), + ADD KEY `username` (`username`,`db`,`table`,`timevalue`); + +-- +-- Indexes for table `pma__navigationhiding` +-- +ALTER TABLE `pma__navigationhiding` + ADD PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`); + +-- +-- Indexes for table `pma__pdf_pages` +-- +ALTER TABLE `pma__pdf_pages` + ADD PRIMARY KEY (`page_nr`), + ADD KEY `db_name` (`db_name`); + +-- +-- Indexes for table `pma__recent` +-- +ALTER TABLE `pma__recent` + ADD PRIMARY KEY (`username`); + +-- +-- Indexes for table `pma__relation` +-- +ALTER TABLE `pma__relation` + ADD PRIMARY KEY (`master_db`,`master_table`,`master_field`), + ADD KEY `foreign_field` (`foreign_db`,`foreign_table`); + +-- +-- Indexes for table `pma__savedsearches` +-- +ALTER TABLE `pma__savedsearches` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`); + +-- +-- Indexes for table `pma__table_coords` +-- +ALTER TABLE `pma__table_coords` + ADD PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`); + +-- +-- Indexes for table `pma__table_info` +-- +ALTER TABLE `pma__table_info` + ADD PRIMARY KEY (`db_name`,`table_name`); + +-- +-- Indexes for table `pma__table_uiprefs` +-- +ALTER TABLE `pma__table_uiprefs` + ADD PRIMARY KEY (`username`,`db_name`,`table_name`); + +-- +-- Indexes for table `pma__tracking` +-- +ALTER TABLE `pma__tracking` + ADD PRIMARY KEY (`db_name`,`table_name`,`version`); + +-- +-- Indexes for table `pma__userconfig` +-- +ALTER TABLE `pma__userconfig` + ADD PRIMARY KEY (`username`); + +-- +-- Indexes for table `pma__usergroups` +-- +ALTER TABLE `pma__usergroups` + ADD PRIMARY KEY (`usergroup`,`tab`,`allowed`); + +-- +-- Indexes for table `pma__users` +-- +ALTER TABLE `pma__users` + ADD PRIMARY KEY (`username`,`usergroup`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `pma__bookmark` +-- +ALTER TABLE `pma__bookmark` + MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `pma__column_info` +-- +ALTER TABLE `pma__column_info` + MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `pma__export_templates` +-- +ALTER TABLE `pma__export_templates` + MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `pma__history` +-- +ALTER TABLE `pma__history` + MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `pma__pdf_pages` +-- +ALTER TABLE `pma__pdf_pages` + MODIFY `page_nr` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `pma__savedsearches` +-- +ALTER TABLE `pma__savedsearches` + MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/tool/quick_start_win10/external/web_config.bat b/tool/quick_start_win10/external/web_config.bat index 6f05da5fd..fbd3fa500 100644 --- a/tool/quick_start_win10/external/web_config.bat +++ b/tool/quick_start_win10/external/web_config.bat @@ -3,5 +3,6 @@ set PATH=%RC_PYTHON2%;%PATH% python web_config.py cd mariadb .\bin\mysql -P 9040 -u root < ..\web_config_local.sql +if %errorlevel% neq 0 pause cd .. pause diff --git a/tool/quick_start_win10/external/web_dash.ini b/tool/quick_start_win10/external/web_dash.ini new file mode 100644 index 000000000..bbbeb8f7d --- /dev/null +++ b/tool/quick_start_win10/external/web_dash.ini @@ -0,0 +1,38 @@ +[] +Title=Web + +[access_log] +Terminal=1 +Title=Access Log +LaunchCmd=powershell +LaunchArgs=Get-Content -Path ".\nginx\logs\access.log" -Wait + +[error_log] +Terminal=1 +Title=Error Log +LaunchCmd=powershell +LaunchArgs=Get-Content -Path ".\nginx\logs\error.log" -Wait + +[mariadb] +Terminal=1 +Title=MariaDB +WorkingDirectory=.\mariadb +LaunchCmd=.\bin\mysqld +LaunchArgs=--no-defaults --port=9040 --datadir=..\..\pipeline\shard_dev\mysql --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --console --standalone +ShutdownCmd=.\bin\mysqladmin +ShutdownArgs=-u root -P 9040 shutdown + +[php] +Terminal=1 +Title=PHP-CGI +WorkingDirectory=.\php +LaunchCmd=.\php-cgi +LaunchArgs=-b 127.0.0.1:9041 + +[nginx] +Terminal=1 +Title=Nginx +WorkingDirectory=.\nginx +LaunchCmd=.\nginx +ShutdownCmd=.\nginx +ShutdownArgs=-s stop diff --git a/tool/quick_start_win10/external/web_wipe.bat b/tool/quick_start_win10/external/web_wipe.bat index a10e255df..0b14f9fb6 100644 --- a/tool/quick_start_win10/external/web_wipe.bat +++ b/tool/quick_start_win10/external/web_wipe.bat @@ -4,7 +4,7 @@ cd.>.\nginx\logs\error.log cd.>.\nginx\conf\nginx.conf rmdir /S /Q ..\pipeline\shard_dev\mysql mkdir ..\pipeline\shard_dev\mysql -del ..\code\web/public_php\ams\is_installe +del ..\code\web\public_php\ams\is_installed del ..\code\web\public_php\config.php del ..\code\web\public_php\is_installed del ..\code\web\public_php\db_version_lib