MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 27th, 2003, 07:37 PM
Kaiserer Kaiserer is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: UK
Posts: 1 Kaiserer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
help: mysql host

Is there anyway to find out the host of a mysql database by maybe running some type of php script with a function?
I have a free webspace provider with PHP and Mysql but it tells me to connect to the mysql databse with locahost as host. I want to link to this database from another domain and so I need the full host name and not just 'localhost'.

Any help or comments would be appreciated.

Reply With Quote
  #2  
Old May 27th, 2003, 09:30 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 6
well if that other domain is on the same webserver you could most likely login as normal. If the other website is on a different server, then most likely you will not be able to connect.

You could try to link the second site to the first site's database via 1st_webserver_ip:3306
__________________
-- Jason

Reply With Quote
  #3  
Old May 29th, 2003, 10:36 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
If you can connect to the mysql server from your web pages with the localhost domain, then the mysql host is the same as your web site's host.

If your website is called example.com, then you just need to go to a shell or terminal prompt and type:

ping example.com

You will recieve the IP address which you can use in connecting to your mysql database remotely.

Now, your second issue will be finding out if you have permissions set to connect to the mysql server remotely with your specific username.

If your control panel is Cpanel, then you can modify this yourself... otherwise you will have to contact your web host to fix this for you.

If your host does not allow this, contact me offline and I will direct you to one that does.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > help: mysql host


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway