Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   Perl to MySQL? (http://www.velocityreviews.com/forums/t889576-perl-to-mysql.html)

sam 12-09-2004 06:29 AM

Perl to MySQL?
 
Hi,

Can anyone tell me how to write Perl script connect to MySQL database?

Thanks
Sam

sam 12-09-2004 06:56 AM

Re: Perl to MySQL?
 
sam wrote:

> Hi,
>
> Can anyone tell me how to write Perl script connect to MySQL database?
>

I noticed that webmin doesn't use DBD/DBI module manage mysql databases.
Which method is better, use the native perl code or DBD/DBI modules?

Sam.

> Thanks
> Sam


Gregory Toomey 12-09-2004 08:50 AM

Re: Perl to MySQL?
 
sam wrote:

> sam wrote:
>
>> Hi,
>>
>> Can anyone tell me how to write Perl script connect to MySQL database?
>>

> I noticed that webmin doesn't use DBD/DBI module manage mysql databases.
> Which method is better, use the native perl code or DBD/DBI modules?
>
> Sam.
>
>> Thanks
>> Sam


Webmin has its own web server, and only assumes a minimal Perl 5
installation.

Use the mysql DBI for general Perl/mysql programming.

gtoomey

Sherm Pendley 12-09-2004 08:57 AM

Re: Perl to MySQL?
 
sam wrote:

> Can anyone tell me how to write Perl script connect to MySQL database?


How on earth did you manage to miss the dozens of books, web sites,
articles and other stuff that's been written on the subject?

Go to <http://dbi.perl.org>. Read stuff.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Sherm Pendley 12-09-2004 08:58 AM

Re: Perl to MySQL?
 
sam wrote:

> Which method is better, use the native perl code or DBD/DBI modules?


The one that *doesn't* involve reinventing the wheel, duh.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

AD 12-09-2004 04:27 PM

Re: Perl to MySQL?
 
What do you mean by "use the native perl code"?

DBD/DBI is the most common and also a portable way of handling
databases.



All times are GMT. The time now is 12:35 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.