Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 01:19
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  MySQL, PostgreSQL, MS SQL, Access (Moderators: Flash-db, Musicman, Ronald Wernecke, Jorge Solis, Andries Seutens)
| | |-+  MySQL on another server
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: MySQL on another server  (Read 2166 times)
cheesewhisk
Server what's that
*
Posts: 3


too big for my little pic

cheesewhisk@hotmail.com
View Profile WWW Email
« on: 05/01/02, 04:28 »

is it possible to access a MySQL database that is hosted on one server using a file on another

ie
can this file...
http://www.myfirstdomain.com/fashdatabasefile.htm

...read this database
http://www.myseconddomain.com/mysqldatabase

?
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #1 on: 05/01/02, 18:18 »

Hi,

no answer - you have to find out yourself... First of all, you are not going to use http://somewhere.com/database or anything like that, but rather the mysql_connect data in your script will name a specific server (and perhaps a specific port) rather than the default localhost.
If both domains are running on the same server group / hosting company, there should be no problems. If they are different, it deends on the security policy of the database server whether you can connect directly.
If it does not work, you will probably have to use some proxy scripting. See the latest tutorials to find out more about this topic

Musicman
Logged
cheesewhisk
Server what's that
*
Posts: 3


too big for my little pic

cheesewhisk@hotmail.com
View Profile WWW Email
« Reply #2 on: 05/02/02, 04:07 »

i know it's currently localhost that was a bad representation sorry i just needed to get the point of two domains which are on two seperate hosting companies

and if it's not localhost what is the address format?

http://www.mydomain.com
www.mydomain.com
mydomain
Huh
localhost.mydomain
i can't find any reference to that bit

what about this one then

host 1 allows php
mydomain 1 has a readdatabase.php file

host 2 doesn't allow php
mydomain 2 has a flash file that loads variables from host 1 readdatabase.php file

will it work?
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #3 on: 05/02/02, 18:15 »

Hi,

the address format for a remote mysql server is just an internet address without the http:// prefix, so it could likely be db.provider.com or mysql.provider.com or www.yoursite.com - it could also not work at all.
As for crossdomain scripting: flash does not support it, but if host 2 has any kind of scripting, you could make a proxy script.
Also, you could perhaps create a version of the database script on server 1 that delivers a flash movie rather than variables

Musicman
Logged
cheesewhisk
Server what's that
*
Posts: 3


too big for my little pic

cheesewhisk@hotmail.com
View Profile WWW Email
« Reply #4 on: 05/07/02, 04:33 »

ok thanks for the directions


i'll let you know if i get anywhere

cheers
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything