Skip to content

Commit 3b50faa

Browse files
authored
Update Install-Under-CentOS_LEMP.md (#180)
* Update Install-Under-CentOS_LEMP.md * Update Install-Under-CentOS_LEMP.md
1 parent a48b6f7 commit 3b50faa

File tree

1 file changed

+39
-16
lines changed

1 file changed

+39
-16
lines changed

Install-Under-CentOS_LEMP.md

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -204,25 +204,48 @@ during the installation.
204204
provide recommendations based on the actual system which will be more
205205
tailored to your environment.
206206

207+
If using MariaDB less than version 11.1 or MySQL use the settings below.
208+
Note that you should revise up or down your settings depending on
209+
the Cacti recommendation that you see once you start the installer.
210+
207211
```shell
208212
[mysqld]
209-
character-set-server=utf8mb4
210-
collation-server=utf8mb4_unicode_ci
211-
max_allowed_packet=18M
212-
max_heap_table_size=98M
213-
tmp_table_size=64M
214-
join_buffer_size=64M
215-
innodb_buffer_pool_size=488M
216-
innodb_doublewrite=OFF
217-
innodb_flush_log_at_timeout=3
218-
innodb_read_io_threads=32
219-
innodb_write_io_threads=16
220-
log-error = /var/log/mysql/mysql-error.log
221-
log-queries-not-using-indexes = 1
222-
slow-query-log = 1
223-
slow-query-log-file = /var/log/mysql/mysql-slow.log
224-
```
213+
character_set_client = utf8mb4
214+
character-set-server = utf8mb4
215+
collation-server = utf8mb4_unicode_ci
216+
innodb_file_format = Barracuda
217+
max_allowed_packet = 16777777
218+
max_heap_table_size = 500M
219+
join_buffer_size = 32M
220+
innodb_file_per_table = ON
221+
innodb_large_prefix = 1
222+
innodb_buffer_pool_size = 500M
223+
innodb_additional_mem_pool_size = 90M
224+
innodb_flush_log_at_trx_commit = 2
225+
log-error = /var/log/mysql/mysql-error.log
226+
log-queries-not-using-indexes = 1
227+
slow-query-log = 1
228+
slow-query-log-file = /var/log/mysql/mysql-slow.log
229+
```
230+
231+
If using MariaDB 11.0 or higher, use the settings below:
225232

233+
```shell
234+
[mariadb]
235+
character_set_client = utf8mb4
236+
character_set_server = utf8mb4
237+
collation_server = utf8mb4_unicode_ci
238+
max_heap_table_size = 500M
239+
join_buffer_size = 32M
240+
innodb_buffer_pool_size = 8G
241+
innodb_doublewrite = OFF
242+
tmp_table_size = 500M
243+
log-error = /var/log/mysql/mysql-error.log
244+
log-queries-not-using-indexes = 1
245+
slow-query-log = 1
246+
slow-query-log-file = /var/log/mysql/mysql-slow.log
247+
```
248+
226249
2. Restart MySQL/MariaDB service to pick up the changes
227250

228251
```console

0 commit comments

Comments
 (0)