Unix Technical Forum

How to setup remote access to MySQL?

This is a discussion on How to setup remote access to MySQL? within the MySQL forums, part of the Database Server Software category; --> Hi, I have a MySQL server 5.0 running on my Windows XP professional PC named PS0160. I am able ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 08:17 AM
yashgt@gmail.com
 
Posts: n/a
Default How to setup remote access to MySQL?

Hi,
I have a MySQL server 5.0 running on my Windows XP professional PC
named PS0160. I am able to connect to it locally.
However my colleague using a different PC PS0322, and who also has
mysql, wants to connect to it. How do I setup the server to make this
possible.
After reading some articles, I have done the following:

use mysql;
grant all privileges on *.* to user1@'%' identified by 'pwd123' with
grant option ;
insert into host values('ps0322','%', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y',
'Y', 'Y', 'Y', 'Y', 'Y', 'Y','Y','Y','Y','Y','Y');

When we try to connect from PS0322 using:
mysql --host=ps0160 --user=user1 -ppwd123
we get the following error:
ERROR 2003 (HY000): Can't connect to MySQL server on 'ps0160' (10060)

Nothing helpful seems to be available on the net.
Please let us know how to enable remote access.

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 08:17 AM
Jerry Stuckle
 
Posts: n/a
Default Re: How to setup remote access to MySQL?

yashgt@gmail.com wrote:
> Hi,
> I have a MySQL server 5.0 running on my Windows XP professional PC
> named PS0160. I am able to connect to it locally.
> However my colleague using a different PC PS0322, and who also has
> mysql, wants to connect to it. How do I setup the server to make this
> possible.
> After reading some articles, I have done the following:
>
> use mysql;
> grant all privileges on *.* to user1@'%' identified by 'pwd123' with
> grant option ;
> insert into host values('ps0322','%', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y',
> 'Y', 'Y', 'Y', 'Y', 'Y', 'Y','Y','Y','Y','Y','Y');
>
> When we try to connect from PS0322 using:
> mysql --host=ps0160 --user=user1 -ppwd123
> we get the following error:
> ERROR 2003 (HY000): Can't connect to MySQL server on 'ps0160' (10060)
>
> Nothing helpful seems to be available on the net.
> Please let us know how to enable remote access.
>
> Thanks
>


Is your firewall blocking port 3306?

Also - it shouldn't be necessary to insert into host. Just granting
privileges should be sufficient. But since you did, did you reload your
privilege tables afterwards?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:32 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com