Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 255 Bytes

update-root-password-in-mysql-5.7.md

File metadata and controls

12 lines (9 loc) · 255 Bytes

Update root password in MySQL 5.7

$ mysql -u root

root:(none)> use mysql;

root:mysql> update user set password=password('abc') where user='root';
root:mysql> set password = password('abc');
root:mysql> flush privileges;
root:mysql> quit;