Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Special privileges required to view database from another server? 2

Status
Not open for further replies.

MatthewP

Programmer
Jan 16, 2001
176
GB
I can connect to my database fine on its own server, but I cant seem to connect to this from another server. I know I've got the syntax right - do I need to set up special permissions for this? Eg. Currently the user has localhost as the first field. Should this be something else to allow him/her to connect from a different server? Or is the problem something else?

Thanks,
Matt.
 
yes

mysql> \u mysql;
mysq>INSERT INTO user (user,host,password,...)
VALUES ('user_id','%',password('password'),...);
mysql>flush privileges;

where '%' allows user to connect from anywhere, you could
replace '%' when the hostname of the remote computer.
where '...' are user permission fields .

hope this helps. devnull22
(Knowledge Base Center )

--
Apparently if you play the Windows NT CD backwards you hear satanic messages. If you think that's bad, play it forwards and it installs Windows NT !
 
So that's what that % sign's about.. thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top