CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
MySQL Problem

 



benchivers
Novice

Oct 30, 2002, 4:15 AM

Post #1 of 5 (546 views)
MySQL Problem Can't Post

Hi,

Is there anyway to use MySQL without using DBI?

Is so could someone please point me into the right direction for documentation.

Many Thanks in Advanced.

Many Regards,

Ben Chivers
Wheres the damn coffee? zzzZZZZZ!!!


podmaster
Novice

Oct 30, 2002, 7:28 AM

Post #2 of 5 (541 views)
Re: [benchivers] MySQL Problem [In reply to] Can't Post


Quote
Is so could someone please point me into the right direction for documentation.


yup, mysql.com and cpan.org


Quote
Is there anyway to use MySQL without using DBI?

Yes, but it's more painful, if not impossible, to do so.

Check out the Mysql module
http://search.cpan.org/author/JWIED/DBD-mysql-2.1020/

It comes as part of the DBD-mysql bundle, and the latest versions are emulated using the DBI drivers.

You can get older versions, but you are "strongly encouraged to " use DBI.

Your other alternative is to use a C interface (you have to know XS to glue the C to the perl, basically reinventing what DBI already does DBD-mysql ), or a generic ODBC interface (like Win32::ODBC and there is at least one other on cpan).

You can get c/c++ libraries from mysql.com

Why don't you wanna use DBI?


benchivers
Novice

Oct 30, 2002, 11:22 AM

Post #3 of 5 (537 views)
Re: [podmaster] MySQL Problem [In reply to] Can't Post

thanks for your reply.

My web server is not compatible with DBI, it does not have the dbi.pm installed.

Thanks I'll check out the links.
Wheres the damn coffee? zzzZZZZZ!!!


davorg
Thaumaturge / Moderator

Oct 31, 2002, 1:48 AM

Post #4 of 5 (533 views)
Re: [benchivers] MySQL Problem [In reply to] Can't Post

If you don't have DBI (and DBD::mysql) installed then the chances are that you won't have the MySQL modules either.

Your best bet is to ask the sysadmin to install them.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


jryan
User

Oct 31, 2002, 10:47 AM

Post #5 of 5 (529 views)
Re: [davorg] MySQL Problem [In reply to] Can't Post

And if thats not possible (Jerk sysadmin, network policy, etc), you should at least be able to install to your local directory, and use it from there.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives