Reset password utilisateur 'root'
Bonjour,
sur fedora 32 j'ai installé mariaDB mais je ne trouve pas ou formater un nouveau mot de passe "root" pour la base de donnée.
Code:
1 2 3 4 5
| # systemctl stop mariadb.service
# mysqld_safe --skip-grant-tables --skip-networking &
# mysql
MariaDB [(none)]>USE mysql;
MariaDB [mysql]> |
A ce point la les explication des wikis ne sont pas très clairs !
Code:
1 2 3 4 5 6 7 8 9 10
| MariaDB [mysql]> SELECT user, plugin FROM user;
+-------+-----------------------+
| User | plugin |
+-------+-----------------------+
| root | mysql_native_password |
| mysql | mysql_native_password |
+-------+-----------------------+
2 rows in set (0.001 sec)
MariaDB [mysql]> |
voici les différentes syntaxes que j'ai pu trouver mais elles me retournent une erreur.
Code:
1 2 3 4 5 6 7 8 9 10
|
MariaDB [mysql]> UPDATE mysql.user SET Password=PASSWORD('dacashAc3') WHERE User='root' AND Host = 'localhost';
ERROR 1348 (HY000): Column 'Password' is not updatable
MariaDB [mysql]>
MariaDB [mysql]> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('dacashAc3');
ERROR 1290 (HY000): The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement
MariaDB [mysql]>
MariaDB [mysql]> update user set authentication_string=password('dacashAc3'), plugin='mysql_native_password' where user='root';
ERROR 1348 (HY000): Column 'authentication_string' is not updatable
MariaDB [mysql]> |
comment réinitialiser le mot de passe "root" pour mariaDB ?