doc:appunti:linux:sa:mysql
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:mysql [2022/07/04 16:16] – [Comandi utili] niccolo | doc:appunti:linux:sa:mysql [2023/03/27 11:31] (current) – [Log delle query] niccolo | ||
---|---|---|---|
Line 18: | Line 18: | ||
Il server MySQL sta in ascolto sulla porta **TCP 3306**, nell' | Il server MySQL sta in ascolto sulla porta **TCP 3306**, nell' | ||
+ | |||
+ | Con Debian più recenti, ad esempio **Debian 11 Bullseye**, è installato il motore MariaDB ed è possibile utilizzare uno snippet di configurazione a parte, ad esempio creando il file **/ | ||
+ | |||
+ | < | ||
+ | [mysqld] | ||
+ | bind-address = 0.0.0.0 | ||
+ | </ | ||
===== Speciale Debian ===== | ===== Speciale Debian ===== | ||
Line 281: | Line 288: | ||
SET GLOBAL general_log_file = '/ | SET GLOBAL general_log_file = '/ | ||
SET GLOBAL general_log = 1; | SET GLOBAL general_log = 1; | ||
+ | </ | ||
+ | |||
+ | Abilitare il logging solo per lo stretto necessario, per evitare consumo di risorse. Impostare **general_log = 0** per fermare il logging. | ||
+ | |||
+ | Per vedere le impostazini correnti: | ||
+ | |||
+ | <code sql> | ||
+ | SHOW GLOBAL VARIABLES LIKE ' | ||
</ | </ | ||
doc/appunti/linux/sa/mysql.txt · Last modified: 2023/03/27 11:31 by niccolo