Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 5 : | Ligne 5 : | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* si erreur de droits sur le répertoire | * si erreur de droits sur le répertoire | ||
Voir https://stackoverflow.com/questions/42153059/mysqld-safe-directory-var-run-mysqld-for-unix-socket-file-dont-exists | |||
https://stackoverflow.com/questions/42153059/mysqld-safe-directory-var-run-mysqld-for-unix-socket-file-dont-exists | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| Ligne 33 : | Ligne 32 : | ||
FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | |||
Voir https://stackoverflow.com/questions/50691977/how-to-reset-the-root-password-in-mysql-8-0-11 | Voir https://stackoverflow.com/questions/50691977/how-to-reset-the-root-password-in-mysql-8-0-11 | ||
sudo mysqld_safe --skip-grant-tables
sudo mkdir -p /var/run/mysqld
sudo chown mysql:mysql /var/run/mysqld
mysql -u root
use mysql;
UPDATE user SET authentication_string=null WHERE User='root';
FLUSH PRIVILEGES;
sudo /etc/init.d/mysql restart
sudo mysql
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'root';
FLUSH PRIVILEGES;
Voir https://stackoverflow.com/questions/50691977/how-to-reset-the-root-password-in-mysql-8-0-11