0

I want to allow remote MySQL connections so that any IP can log in as the root user. How would I go about doing this?

1 Answers1

0

Try it:

use mysql;

update user set host='%' where host='localhost'
Trần Hữu Hiền
  • 872
  • 1
  • 9
  • 22
  • 4
    While this code may resolve the OP's issue, it is best to include an explanation as to how your code addresses the OP's issue. In this way, future visitors can learn from your post, and apply it to their own code. SO is not a coding service, but a resource for knowledge. Also, high quality, complete answers are more likely to be upvoted. These features, along with the requirement that all posts are self-contained, are some of the strengths of SO as a platform, that differentiates it from forums. You can edit to add additional info &/or to supplement your explanations with source documentation. – ysf Jun 24 '20 at 08:25