Solved

Perl and MySQL

Posted on 1998-12-04
1
314 Views
Last Modified: 2010-03-05
I want to use MySQL with Perl but I have a problem.
I downloaded a module mysql.pm and tried to use it like that:

    use DBI;
    ...
    ...

    $dbh = DBI->connect($dsn, $user, $password);

    ...

but I got an error message "Can't find DBI" or something like that.
The solution is probably very simple, but I give 300 points to someone who will explain me what to do from A to Z. And please, I am not a Perl guru, explain clearly.

Thanks
0
Comment
Question by:topalzzz
1 Comment
 
LVL 5

Accepted Solution

by:
b2pi earned 300 total points
ID: 1206747
First, you have to download and install DBI from http://www.perl.com/CPAN-local/modules/by-module/DBI/DBI-1.02.tar.gz

Once you've done that, install it, and then get http://www.tcx.se/Contrib/Msql-Mysql-modules-1.2010.tar.gz

Install that, and you should be on your way.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
perl search and replace 6 165
Perl efficient DB Call 8 82
PERL variable conundrum 9 89
PERL - Find newest folder 12 118
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now