mysql -u root -p
mysql>use mysql; mysql>update user set host =’%'where user =’root’; mysql>flush privileges;