Thread: Changing Databases???
Results 1 to 2 of 2
Related
-
Generating reports from databases Forum: CGI Perl Forum
Replies: 2 -
databases Forum: Databases
Replies: 1 -
Query Several Databases From Search Field Forum: PHP Forum
Replies: 9 -
Shopping carts and databases Forum: Website Scripts Forum
Replies: 1 -
Shopping carts and databases Forum: HTML Forum
Replies: 0
-
10-30-2003, 09:28 AM #1
Changing Databases???
Hi, I'm moving a database from one server to another server...both have told me the server name is localhost.
So when I am on one server, its localhost, but how do i go about accessing the localhost on the other server. I tried using mydomainname/localhost but that didn't do it.
Anyone know.
Heres the example of the code.
PHP Code:Set newobjRecordset = Server.CreateObject("ADODB.Connection")
newobjRecordset.Open "driver={MySQL};server=gamertags.phenominet.com/localhost;database=forum","*","*"
Set objRecordset = Server.CreateObject("ADODB.Connection")
objRecordset.Open "driver={MySQL};server=localhost;database=roth5000","*","*"
-
10-30-2003, 02:46 PM #2
localhost is a loopback address meaning, basically, 'the machine I am on'.
if its a different machine, then you need the address for it. The machine also has to be set to allow you to remotely access that database.
I would speak to your hosts to see if they allow this.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum