-
Enter mysql:
mysql –uroot –p
-
Using the mysql library:
use mysql;
-
update user table
UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1;
-
Force refresh permissions:
flush privileges;
Remember to configure port 3306 to be accessible from the external network.