Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
install_24_4 [2024/08/02 07:38] – system | install_24_4 [2024/09/19 10:22] (current) – [Install MariaDB] system | ||
---|---|---|---|
Line 243: | Line 243: | ||
sql_mode=IGNORE_SPACE, | sql_mode=IGNORE_SPACE, | ||
</ | </ | ||
- | * Save the file and restart | + | * Save the file. |
+ | |||
+ | === Enable the Event Scheduler === | ||
+ | * MariaDB | ||
+ | * We make use of this feature to automatically optimize some of the database tables. | ||
+ | * We will enable the Event Scheduler in MariaDB by creating a new file / | ||
+ | <code bash> | ||
+ | sudo vi / | ||
+ | </ | ||
+ | * Enter these two lines: | ||
+ | <code bash> | ||
+ | [mysqld] | ||
+ | event_scheduler=on | ||
+ | </ | ||
+ | * Save the file. | ||
+ | * Restart | ||
<code bash> | <code bash> | ||
sudo systemctl restart mariadb | sudo systemctl restart mariadb | ||
</ | </ | ||
+ | * You can confirm that it is now enabled by checking the following from the SQL terminal: | ||
+ | <code bash> | ||
+ | sudo mysql -u root | ||
+ | MariaDB [(none)]> | ||
+ | +-----------------+-------+ | ||
+ | | Variable_name | ||
+ | +-----------------+-------+ | ||
+ | | event_scheduler | ON | | ||
+ | +-----------------+-------+ | ||
+ | 1 row in set (0.001 sec) | ||
+ | </ | ||
----- | ----- | ||
==== Performance tuning for Nginx ==== | ==== Performance tuning for Nginx ==== |