datadir="E:/wamp64/bin/mysql/mysql5.7.37/data"Par
;datadir="E:/wamp64/bin/mysql/mysql5.7.37/data" datadir="c:/wwwbases"De cette manière, il est facile de revenir en arrière si il y a un problème.
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.37 MySQL Community Server (GPL) Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>Vu qu'il est préférable d'avoir un mot de passe pour l'utilisateur root, tant pour Wampserver que pour WordPress et autres CMS, nous allons créer ledit mot de passe dans cette console MySQL.
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'new_password' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO 'root'@'::1' IDENTIFIED BY 'new_password' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'new_password' WITH GRANT OPTION; GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION;Et on quitte la console en tapant exit touche Entrée