MYSQL CHANGE PASSWORD

/etc/init.d/mysql stop
/usr/sbin/mysqld --skip-grant-tables
mysql> FLUSH PRIVILEGES;
mysql> SET PASSWORD FOR root@'localhost' = PASSWORD('votre_nouveau_mot_de_passe');
mysql> FLUSH PRIVILEGES;
mysql> exit
/etc/init.d/mysql start

// création user grant all
CREATE USER [IF NOT EXISTS] 'monadmin'@'%' IDENTIFIED BY 'monpass';
GRANT ALL  ON  *.* TO 'monadmin'@'%';


     

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

seven + one =