Accessing an outside mysql database

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
timbo
-


Joined: 06 Aug 2003
Posts: 9
Location: external web server

PostPosted: Thu Sep 18, 2003 4:36 am    Post subject: Accessing an outside mysql database Reply with quote

Does ayone know the code to access an outside database. I have my site on an outside service but when calling the database for iformation, I would like to have it access the database on my computer running mysql and abyss.
In ohter words the script would be on host.domain and when ran it would have to go to my.domain to access the database.
Thanks
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Sep 19, 2003 3:56 pm    Post subject: Re: Accessing an outside mysql database Reply with quote

When linking to a database in a script, you usually supply its location. Instead of "localhost", put your computer's IP or DNS.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
timbo
-


Joined: 06 Aug 2003
Posts: 9
Location: external web server

PostPosted: Fri Sep 19, 2003 11:31 pm    Post subject: Accessing an outside mysql database Reply with quote

I went and changed mysqlhost form localhost to domain ip address.
When I tried it I got this :
Software error:
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: D:/Abyss Web Server/Scripts/lib D:/Abyss Web Server/Scripts/site/lib .) at (eval 5) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ExampleP, Proxy.

I checked the installtion of mysql and it follows exactly as laid out i the tutorial. One problem is I can't find the mysql.pm file anywhere on my machine.
HEEEEELP
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Sep 22, 2003 12:49 am    Post subject: Re: Accessing an outside mysql database Reply with quote

This is a Perl error meaning that DBD::mysql module is missing. You'll have to install it or ask the system admin for that.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
timbo
-


Joined: 06 Aug 2003
Posts: 9
Location: external web server

PostPosted: Tue Sep 23, 2003 1:07 am    Post subject: Reply with quote

where do I get this module. I have been all over mysql.com and canot fid it anywhere.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Sep 23, 2003 4:09 pm    Post subject: Reply with quote

timbo wrote:
where do I get this module. I have been all over mysql.com and canot fid it anywhere.

This module is a Perl module. You can get it from http://www.cpan.org .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group