Professional Web Applications Themes

How to setup remote access to MySQL? - 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 ...

  1. #1

    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

    yashgt@gmail.com Guest

  2. #2

    Default Re: How to setup remote access to MySQL?

    [email]yashgt[/email] 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.
    [email]jstucklexattglobal.net[/email]
    ==================
    Jerry Stuckle Guest

Similar Threads

  1. MySQL CF Setup Locally
    By red04 in forum Coldfusion Server Administration
    Replies: 2
    Last Post: November 26th, 01:17 PM
  2. Php and Mysql setup
    By klausy in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: March 21st, 11:17 AM
  3. FM Server setup for Remote admin
    By tooler888 in forum FileMaker
    Replies: 1
    Last Post: September 4th, 06:41 PM
  4. Setup SCO's custom for remote installs
    By Perry Whelan in forum SCO
    Replies: 2
    Last Post: July 18th, 08:42 PM
  5. PHP hosting with remote MySQL access allowed
    By Joshua Minnie in forum PHP Development
    Replies: 0
    Last Post: July 10th, 05:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139