Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Answer: What modules do I need to connect Perl to MySQL?

by penguinfuz (Pilgrim)
on Feb 06, 2001 at 07:55 UTC ( #56603=categorized answer: print w/replies, xml ) Need Help??

Q&A > database programming > What modules do I need to connect Perl to MySQL? - Answer contributed by penguinfuz

perl -MCPAN -e shell
install Bundle::DBD::mysql

During the installation, you will be prompted for some values, you should take the DEFAULT value for each UNLESS you've disabled the anonymous user access.

When the installation ask for the username to test with (default is undef), choose "root", and the set the password, (again undef) to whatever you've set the root user's MySQL password to.

NOTE:The username/password is only for the installation to test, (make test) and if it fails, you can always go into the ~/.cpan/build/$MYSQL_SOURCE directory and *manually*...
make install

Assuming you've installed MySQL... 8)
/usr/bin/mysql_setpermission

If the previous command works, you've got Perl and MySQL playing together.

  • Comment on Answer: What modules do I need to connect Perl to MySQL?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2016-12-09 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (158 votes). Check out past polls.