1.修改密码
mysqladmin -u root -p 'new password'
UPDATE user SET password=PASSWORD("123456") WHERE user='root';
grant all on * to "root" identified by "123456";
1.修改密码
mysqladmin -u root -p 'new password'
UPDATE user SET password=PASSWORD("123456") WHERE user='root';