1. 程式人生 > >MySQL5.7設定root密碼

MySQL5.7設定root密碼

update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost';

flush privileges;