вторник, 9 октября 2018 г.

change mysql root password


Source :

https://stackoverflow.com/questions/7534056/mysql-root-password-change

This is the updated answer for WAMP v3.0.6 and up

> UPDATE mysql.user 
> SET authentication_string=PASSWORD('MyNewPass') 
> WHERE user='root';

>FLUSH PRIVILEGES;

In MySQL version 5.7.x there is no more password field in the mysql table. It was replaced with authentication_string.



Комментариев нет:

Отправить комментарий