tech:mysql_mariadb_-_reset_root_pasword
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:mysql_mariadb_-_reset_root_pasword [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:mysql_mariadb_-_reset_root_pasword [2025/03/24 20:49] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| {{tag> | {{tag> | ||
| - | = MySQL / MariaDB - Reset root pasword | + | # MySQL / MariaDB - Reset root pasword |
| - | == Méthode 1 | + | ## Méthode 1 |
| - | < | + | ~~~bash |
| sudo / | sudo / | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| sudo mysqld_safe --skip-grant-tables & | sudo mysqld_safe --skip-grant-tables & | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| mysql -uroot | mysql -uroot | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~sql |
| use mysql; | use mysql; | ||
| -- UPDATE user SET authentication_string=PASSWORD(" | -- UPDATE user SET authentication_string=PASSWORD(" | ||
| Ligne 23: | Ligne 24: | ||
| FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
| QUIT | QUIT | ||
| - | </ | + | ~~~ |
| FIXME | FIXME | ||
tech/mysql_mariadb_-_reset_root_pasword.1742825205.txt.gz · Dernière modification : de 127.0.0.1
