[root@M ~]# vi /etc/my.cnf [mysqld] skip-grant-tables [root@M ~]# service mysqld restart Shutting down MySQL... SUCCESS! Starting MySQL.. SUCCESS! mysql> insert into user(user,password,host) values ('root','','localhost'); mysql> update user set Hos…