Skip to content

Commit 6ab43d5

Browse files
committed
Add repair profiles
1 parent 9448941 commit 6ab43d5

File tree

18 files changed

+2038
-0
lines changed

18 files changed

+2038
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[main]
2+
3+
additional_ssl_hosts =
4+
ignore_shutdown_all = off
5+
ip = auto
6+
port = 3306
7+
clean_directories = {root_dir}\temp\{module_name}\{profile_name}
8+
log_directory = {root_dir}\logs\{module_name}
9+
log_level_values = 0 1 2 3 4 9
10+
log_level = 2
11+
query_log_values = 0 1
12+
query_log_level = 0
13+
shell_command = "{root_dir}\modules\{module_name}\bin\mysql.exe" --defaults-file="{root_dir}\modules\{module_name}\my.ini" --protocol=PIPE --socket={module_name} --host=""
14+
ssl_auto_cert = on
15+
start_command = "{root_dir}\modules\{module_name}\bin\mysqld.exe" --defaults-file="{root_dir}\modules\{module_name}\my.ini" --enable-named-pipe --standalone --console
16+
start_directory = {root_dir}\modules\{module_name}\bin
17+
work_directories = {root_dir}\data\{module_name}\{profile_name} {root_dir}\temp\upload {root_dir}\temp\{module_name}\{profile_name}
18+
19+
allowed_system_env_vars = auto
20+
log_max_filesize = auto
21+
log_write_title = auto
22+
max_probation_fails = auto
23+
max_shutdown_time = auto
24+
probation = auto
25+
silent_mode = auto
26+
terminal_codepage = auto
27+
time_zone = auto
28+
used_addons_environment = auto
29+
30+
[my.ini]
31+
32+
comment = #
33+
destination = {root_dir}\modules\{module_name}\my.ini
34+
directory_separator = /
35+
enabled = on
36+
encoding = ASCII
37+
38+
[env.bat]
39+
40+
comment = ::
41+
destination = {root_dir}\data\cli\env_{module_name}.bat
42+
directory_separator = \
43+
enabled = on
44+
encoding = UTF8
45+
source_dir = {root_dir}\system\templates
46+
47+
[shell.bat]
48+
49+
comment = ::
50+
destination = {root_dir}\data\cli\shell_{module_name}.bat
51+
directory_separator = \
52+
enabled = on
53+
encoding = UTF8
54+
source_dir = {root_dir}\system\templates
55+
56+
[environment]
57+
58+
DBI_USER =
59+
DBI_TRACE =
60+
MYSQL_GROUP_SUFFIX =
61+
MYSQL_HOME = {root_dir}\modules\{module_name}
62+
MYSQL_HOST = {module_name}
63+
MYSQL_PS1 =
64+
MYSQL_PWD =
65+
MYSQL_TCP_PORT = {port}
66+
MYSQL_UNIX_PORT = {module_name}
67+
PATH = {root_dir}\modules\{module_name}\bin;%PATH%
68+
TEMP = {root_dir}\temp\{module_name}\{profile_name}
69+
TMP = {root_dir}\temp\{module_name}\{profile_name}
70+
TMPDIR = {root_dir}\temp\{module_name}\{profile_name}
71+
TZ =
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
[client]
2+
3+
plugin_dir = "{root_dir}/modules/{module_name}/lib/plugin"
4+
host = {module_name}
5+
port = {port}
6+
socket = {module_name}
7+
user = root
8+
9+
[mysql]
10+
11+
no-beep
12+
default-character-set = utf8mb4
13+
local_infile = 1
14+
15+
[mysqld]
16+
17+
# General Settings
18+
19+
basedir = "{root_dir}/modules/{module_name}"
20+
bind_address = {ip}
21+
character_set_server = utf8mb4
22+
collation_server = utf8mb4_unicode_ci
23+
datadir = "{root_dir}/data/{module_name}/{profile_name}"
24+
default_storage_engine = InnoDB
25+
explicit_defaults_for_timestamp = 1
26+
ft_min_word_len = 3
27+
lc_messages = en_US
28+
lc_messages_dir = "{root_dir}/modules/{module_name}/share"
29+
local_infile = 1
30+
lower_case_table_names = 2
31+
performance_schema = 0
32+
pid_file = "{root_dir}/temp/{module_name}.pid"
33+
plugin_dir = "{root_dir}/modules/{module_name}/lib/plugin"
34+
port = {port}
35+
secure_file_priv = "{root_dir}/temp/upload"
36+
server_id = 1
37+
socket = {module_name}
38+
tmpdir = "{root_dir}/temp/{module_name}/{profile_name}"
39+
40+
# Skip Settings
41+
42+
skip-grant-tables
43+
skip-log-bin
44+
#skip-name-resolve
45+
#skip-networking
46+
#skip-ssl
47+
48+
# SSL Settings
49+
50+
ssl_ca = "{root_dir}/data/ssl/cacert.pem"
51+
ssl_cert = "{root_dir}/data/ssl/modules/{module_name}/cert.crt"
52+
ssl_key = "{root_dir}/data/ssl/modules/{module_name}/cert.key"
53+
tls_version = TLSv1.2,TLSv1.3
54+
55+
# Cache Settings
56+
57+
query_cache_limit = 256K
58+
query_cache_size = 32M
59+
query_cache_type = 1
60+
61+
# Connection Settings
62+
63+
max_connections = 128
64+
max_connect_errors = 32
65+
thread_cache_size = 4
66+
67+
# InnoDB Settings
68+
69+
innodb_buffer_pool_size = 512M
70+
innodb_data_file_path = ibdata1:12M:autoextend
71+
innodb_data_home_dir = "{root_dir}/data/{module_name}/{profile_name}"
72+
innodb_file_per_table = 1
73+
innodb_log_file_size = 128M
74+
75+
# innodb_force_recovery levels:
76+
# 0 – Disabled (default)
77+
# 1 – Skip background purge and rollback
78+
# 2 – Skip rollback of uncommitted transactions
79+
# 3 – Skip insert buffer merge
80+
# 4 – Prevent flushing of data to disk (risky)
81+
# 5 – Disable doublewrite buffer
82+
# 6 – Disable all recovery mechanisms, including redo log (read-only mode)
83+
#
84+
# Recommended: Start with level 1 and increase only if necessary.
85+
# This is an emergency mode intended only to dump and recover data.
86+
# Do NOT run MySQL in this mode for normal operations — data integrity is not guaranteed!
87+
88+
innodb_force_recovery = 0
89+
90+
# Logging
91+
92+
general_log = {query_log_level}
93+
general_log_file = "{root_dir}/logs/{module_name}/query_log.log"
94+
log_warnings = {log_level}
95+
#log_queries_not_using_indexes = 1
96+
#long_query_time = 1
97+
#slow_query_log = 1
98+
#slow_query_log_file = "{root_dir}/logs/{module_name}/slow_query_log.log"
99+
100+
# MyISAM Settings
101+
102+
key_buffer_size = 32M
103+
myisam_recover_options = backup,force
104+
aria_recover_options = backup,force
105+
106+
# Table Settings
107+
108+
table_definition_cache = 4096
109+
table_open_cache = 4096
110+
max_heap_table_size = 128M
111+
tmp_table_size = 16M
112+
113+
[aria_chk]
114+
115+
datadir = "{root_dir}/data/{module_name}/{profile_name}"
116+
tmpdir = "{root_dir}/temp/{module_name}/{profile_name}"
117+
118+
[aria_read_log]
119+
120+
tmpdir = "{root_dir}/temp/{module_name}/{profile_name}"
121+
122+
[ariapack]
123+
124+
datadir = "{root_dir}/data/{module_name}/{profile_name}"
125+
126+
[myisamchk]
127+
128+
key_buffer_size = 32M
129+
tmpdir = "{root_dir}/temp/{module_name}/{profile_name}"
130+
131+
[mysqladmin]
132+
133+
no-beep
134+
default-character-set = utf8mb4
135+
136+
[mysqlcheck]
137+
138+
default-character-set = utf8mb4
139+
140+
[mysqldump]
141+
142+
quick
143+
quote_names
144+
max_allowed_packet = 32M
145+
146+
[mysqlimport]
147+
148+
default-character-set = utf8mb4
149+
150+
[mysqlshow]
151+
152+
default-character-set = utf8mb4
153+
keys = 0
154+
show-table-type = 0
155+
status = 0
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[main]
2+
3+
additional_ssl_hosts =
4+
ignore_shutdown_all = off
5+
ip = auto
6+
port = 3306
7+
clean_directories = {root_dir}\temp\{module_name}\{profile_name}
8+
log_directory = {root_dir}\logs\{module_name}
9+
log_level_values = 0 1 2 3 4 9
10+
log_level = 2
11+
query_log_values = 0 1
12+
query_log_level = 0
13+
shell_command = "{root_dir}\modules\{module_name}\bin\mysql.exe" --defaults-file="{root_dir}\modules\{module_name}\my.ini" --protocol=PIPE --socket={module_name} --host=""
14+
ssl_auto_cert = on
15+
start_command = "{root_dir}\modules\{module_name}\bin\mysqld.exe" --defaults-file="{root_dir}\modules\{module_name}\my.ini" --enable-named-pipe --standalone --console
16+
start_directory = {root_dir}\modules\{module_name}\bin
17+
work_directories = {root_dir}\data\{module_name}\{profile_name} {root_dir}\temp\upload {root_dir}\temp\{module_name}\{profile_name}
18+
19+
allowed_system_env_vars = auto
20+
log_max_filesize = auto
21+
log_write_title = auto
22+
max_probation_fails = auto
23+
max_shutdown_time = auto
24+
probation = auto
25+
silent_mode = auto
26+
terminal_codepage = auto
27+
time_zone = auto
28+
used_addons_environment = auto
29+
30+
[my.ini]
31+
32+
comment = #
33+
destination = {root_dir}\modules\{module_name}\my.ini
34+
directory_separator = /
35+
enabled = on
36+
encoding = ASCII
37+
38+
[env.bat]
39+
40+
comment = ::
41+
destination = {root_dir}\data\cli\env_{module_name}.bat
42+
directory_separator = \
43+
enabled = on
44+
encoding = UTF8
45+
source_dir = {root_dir}\system\templates
46+
47+
[shell.bat]
48+
49+
comment = ::
50+
destination = {root_dir}\data\cli\shell_{module_name}.bat
51+
directory_separator = \
52+
enabled = on
53+
encoding = UTF8
54+
source_dir = {root_dir}\system\templates
55+
56+
[environment]
57+
58+
DBI_USER =
59+
DBI_TRACE =
60+
MYSQL_GROUP_SUFFIX =
61+
MYSQL_HOME = {root_dir}\modules\{module_name}
62+
MYSQL_HOST = {module_name}
63+
MYSQL_PS1 =
64+
MYSQL_PWD =
65+
MYSQL_TCP_PORT = {port}
66+
MYSQL_UNIX_PORT = {module_name}
67+
PATH = {root_dir}\modules\{module_name}\bin;%PATH%
68+
TEMP = {root_dir}\temp\{module_name}\{profile_name}
69+
TMP = {root_dir}\temp\{module_name}\{profile_name}
70+
TMPDIR = {root_dir}\temp\{module_name}\{profile_name}
71+
TZ =

0 commit comments

Comments
 (0)