Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am aware of this command:

(我知道此命令:)

GRANT ALL PRIVILEGES
ON database.*
TO 'user'@'yourremotehost'
IDENTIFIED BY 'newpassword';

But then it only allows me to grant a particular IP address to access this remote MySQL database.

(但是,这只允许我授予特定的IP地址来访问此远程MySQL数据库。)

What if I want it so that any remote host can access this MySQL database?

(如果我想要它,以便任何远程主机都可以访问该MySQL数据库怎么办?)

How do I do that?

(我怎么做?)

Basically I am making this database public so everyone can access it.

(基本上,我将此数据库公开,因此每个人都可以访问它。)

  ask by adit translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
636 views
Welcome To Ask or Share your Answers For Others

1 Answer

TO 'user'@'%'

%是一个通配符-你也可以做'%.domain.com''%.123.123.123'之类的东西,如果你需要。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...