doc:appunti:linux:sa:mysql
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:linux:sa:mysql [2020/03/31 18:24] – [Utenti e privilegi] niccolo | doc:appunti:linux:sa:mysql [2022/07/04 16:16] – [Comandi utili] niccolo | ||
---|---|---|---|
Line 121: | Line 121: | ||
</ | </ | ||
- | È possibile anche manipolare direttamente la tabella interna degli utenti: | + | Sarebbe |
<code sql> | <code sql> | ||
Line 142: | Line 142: | ||
SET PASSWORD FOR root=PASSWORD(' | SET PASSWORD FOR root=PASSWORD(' | ||
SET PASSWORD FOR dbuser@10.0.1.2=PASSWORD(' | SET PASSWORD FOR dbuser@10.0.1.2=PASSWORD(' | ||
+ | </ | ||
+ | |||
+ | La password è memorizzata storicamente nel campo **Password** della tabella **user**, ma versioni più recenti del motore MySQL (ad esempio **MariaDB 10**) possono usare plugin aggiuntivi e le informazioni staranno nei campi **plugin** e **authentication_string**: | ||
+ | |||
+ | < | ||
+ | SELECT Host, User, Password, plugin, authentication_string FROM user; | ||
+ | +-----------+-----------+----------------+-----------------------+-----------------------+ | ||
+ | | Host | User | Password | ||
+ | +-----------+-----------+----------------+-----------------------+-----------------------+ | ||
+ | | localhost | root | *CAE6919BF3... | | ||
+ | | localhost | user1 | ||
+ | | localhost | user2 | *B4C990D89F... | | ||
+ | +-----------+-----------+----------------+-----------------------+-----------------------+ | ||
</ | </ | ||
Line 340: | Line 353: | ||
===== Encoding del database e delle tabelle ===== | ===== Encoding del database e delle tabelle ===== | ||
- | Nel 2020 pare che MySQL (MariaDB) crei ancora | + | Pare che ancora nel 2020 MySQL (MariaDB |
< | < | ||
Line 365: | Line 378: | ||
+--------------------+ | +--------------------+ | ||
</ | </ | ||
+ | |||
+ | ===== Errore " | ||
+ | |||
+ | Può capitare con l' | ||
+ | |||
+ | Ovviamente i dati contenuti nella tabella sono persi, ma dovrebbe essere possibile ricostruire la struttura dal file **frm**. Nella pagina **[[https:// | ||
+ |
doc/appunti/linux/sa/mysql.txt · Last modified: 2023/03/27 11:31 by niccolo