Root Remove Remote % host. My SQL
If you did it with a GRANT, run the corresponding REVOKE.

Or you could run this.  (Suggest you dump mysql.user first, just in case.)

DELETE FROM mysql.user
    WHERE user = 'root'
      AND host = '%';