常用命令: 修改root用户密码 update mysql.user set authentication_string=password('1234qwer') where user='root' ; 授权root用户 所有主机登录: grant all privileges on *.* to 'root'@'%' identified by 'redhat'; mysqladmin-u root -p shutdown 关闭mysql mysqld --skip-grant-tables…