doc:appunti:linux:sa:mysql
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
doc:appunti:linux:sa:mysql [2022/07/04 16:08] – niccolo | doc:appunti:linux:sa:mysql [2022/07/04 16:16] – [Comandi utili] niccolo | ||
---|---|---|---|
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... | | ||
+ | +-----------+-----------+----------------+-----------------------+-----------------------+ | ||
</ | </ | ||
doc/appunti/linux/sa/mysql.txt · Last modified: 2023/03/27 11:31 by niccolo