1.mysql> use mysql
2.mysql> update db set host = '%' where user = 'root';
3.mysql> flush privileges;
4.mysql> grant all privileges on *.* to 'yourusername'@'%' identified by 'yourpassword' with grant option;
1.mysql> use mysql
2.mysql> update db set host = '%' where user = 'root';
3.mysql> flush privileges;
4.mysql> grant all privileges on *.* to 'yourusername'@'%' identified by 'yourpassword' with grant option;