hadoop-05-mysql修改密码
su root
1,service mysqld start
2,vi /var/log/mysqld.log #在这里面查找密码
3, mysql -uroot -p刚刚找到的密码
4,service mysqld stop
5,mysqld_safe --skip-grant-tables &
6,mysql -uroot -p #不需要密码就登录了;
update mysql.user set authentication_string=password('root') where user='root' ;
exit
service mysqld stop
service mysqld start
7, mysql -uroot -proot
set global validate_password_policy=0;
set global validate_password_length=1;
alter user 'root'@'localhost' identified by 'root';