PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 27th, 1999, 07:36 PM
Tyrnt
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hey all,
I was wondering something. Ok, heres the scenario. My host is 1.) fixing to change and 2.) the new one might not let me use their mySQL server. so heres the question. If i have a friend that has a host that lets him use mySQL is it at all possible to connect to his mySQl server from my server? I am going to look into this further my self(have a little already) so i might figure it out b4 i get a reply but thank you.

--Tyrnt
http://www.blizzardnexus.com

Reply With Quote
  #2  
Old August 29th, 1999, 12:57 AM
esconsult1
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hey, that's no problem.

Right now I have a host running MySQL at work and can access it thru ODBC from home. I can run an Access application, or access it from my Linux server at home.

What's important is your security settings in MySQL. Be sure to read the security portion of the manual. There are some pretty good examples of setting priviledges.

Normally the default MySQL installation is setup for access only from the local host. You will need to add a new user that can access the database(s) from any host, or a specific host.

Reply With Quote
  #3  
Old August 29th, 1999, 01:57 AM
Tyrnt
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Ok,

lets see, ok, if i get my friend to ask his admin to do this what would be the syntax to tell my PHP3 script to connect to his server and stuff?


thank you very much.
--Tyrnt
http://www.blizzardnexus.com

Reply With Quote
  #4  
Old August 29th, 1999, 05:12 PM
jpenix
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Ahh the beauty of TCP/IP - it doesn't care where the assorted parts are located.

All you gotta do is change the parameters of your 'mysql_connect' statement:

mysql_connect("<your friend's hostname or IP", "<login name set up for you>", "<login password>");

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > connect to remote mysql server

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap