一、mysql 5.7( mysql-community-server) 忘记密码
service mysqld stopmysqld_safe --skip-grant-tables &mysql -u rootuse mysql;update user set authentication_string=password(‘1111‘) where user=‘root‘;flush privileges;quitservice mysqld restart