how to connect to a remote computer?

This is a discussion on how to connect to a remote computer? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, I can connect to the local computer like: objdc.Open "Driver={MySQL ODBC 3.51 Driver}; Server=localhost; ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-02-2005
chris
 
Posts: n/a
Default how to connect to a remote computer?

Hi,

I can connect to the local computer like:
objdc.Open "Driver={MySQL ODBC 3.51 Driver}; Server=localhost; Port=3306;
Option=0; Socket=; Stmt=;"_
& " Database=mydb; Uid=root; Pwd=mypw;"

but what's the syntax to connect to a remote computer (e.g. 10.0.0.180)?

Thanks
Chris


Reply With Quote
  #2 (permalink)  
Old 12-02-2005
Sean
 
Posts: n/a
Default Re: how to connect to a remote computer?

Set Server=10.0.0.180

Reply With Quote
  #3 (permalink)  
Old 12-03-2005
chris
 
Posts: n/a
Default Re: how to connect to a remote computer?

Thanks, but then , i get this error:
"server 'mycomputer' is not allowed to connect to mysql" (or something like
this)

It runs like a service in windows. How can i allow it?
Thanks again

"Sean" <oreilly.sean@gmail.com> schreef in bericht
news:1133545209.074428.305300@g44g2000cwa.googlegr oups.com...
> Set Server=10.0.0.180
>



Reply With Quote
  #4 (permalink)  
Old 12-04-2005
Etienne Marais
 
Posts: n/a
Default Re: how to connect to a remote computer?

chris wrote:

> Thanks, but then , i get this error:
> "server 'mycomputer' is not allowed to connect to mysql" (or something
> like this)
>
> It runs like a service in windows. How can i allow it?
> Thanks again


Try connecting to the remote MySQL
server using the MySQL client,

e.g. c:\my_mysql_path\bin\mysql -u root -p -h 10.0.0.180

(you enter your password after hitting the return key)

I suspect it is simply a matter of
user root in MySQL being allowed to
connect from localhost using password 'mypw'

but not from other hosts,
remember that access is restricted
by host+username and that you can
even have different passwords for
the same username, but different hosts.

What app. are you using to administrate
your MySQL database ?

--
Etienne Marais
Cosmic Link
South Africa

Reply With Quote
  #5 (permalink)  
Old 12-04-2005
chris
 
Posts: n/a
Default Re: how to connect to a remote computer?

This works: c:\my_mysql_path\bin\mysql -u root -p -h 10.0.0.180.

I use Mysql administrator 1.1.5 , but where can i set it so i can connect
from a host in
objdc.Open "Driver={MySQL ODBC 3.51 Driver}; Server=localhost; Port=3306;
Option=0; Socket=; Stmt=; Database=mydb; Uid=root; Pwd=xxx"

Thanks
Chris







"Etienne Marais" <etienne@cosmiclink.co.za> schreef in bericht
news:dmto79$ag2$1@ctb-nnrp2.saix.net...
> chris wrote:
>
>> Thanks, but then , i get this error:
>> "server 'mycomputer' is not allowed to connect to mysql" (or something
>> like this)
>>
>> It runs like a service in windows. How can i allow it?
>> Thanks again

>
> Try connecting to the remote MySQL
> server using the MySQL client,
>
> e.g. c:\my_mysql_path\bin\mysql -u root -p -h 10.0.0.180
>
> (you enter your password after hitting the return key)
>
> I suspect it is simply a matter of
> user root in MySQL being allowed to
> connect from localhost using password 'mypw'
>
> but not from other hosts,
> remember that access is restricted
> by host+username and that you can
> even have different passwords for
> the same username, but different hosts.
>
> What app. are you using to administrate
> your MySQL database ?
>
> --
> Etienne Marais
> Cosmic Link
> South Africa
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:06 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0