#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Kuwait
    Posts
    47
    Rep Power
    15
    I have installed Active perl on window 98, and I am trying to install DBI and MySql. Does anyone know where I can find those two things with easy to follow documentation for installation?

    Thank you.
  2. #2
  3. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    use active perl's /perl/bin/ppm.pl to install DBI and DBD::mysql

    and download the win32 binary of mysql at mysql.com
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Kuwait
    Posts
    47
    Rep Power
    15
    Thank you. I downloaded everything and I was able to get MySql to run. Although, I have one more question. I was able to install DBI and DBD::MySql, but I wasn't able to call MySql from my PERL program. I have installed MySql in a C:mysql directory, and Perl with the DBI in another directory.

    Do you know what I need to do to get them connected?

    Thank you.
  6. #4
  7. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    yep, write some perl dbi code, start up the mysql daemon, run the script
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Cape Town, WP, South Africa
    Posts
    39
    Rep Power
    15
    Try start with this code

    #!/usr/bin/perl

    use DBI;
    $dbh = DBI->connect("DBI:mysql:yourdb",root,yourpasswordIfAny);

    your user name should by default be root unless you changed it

IMN logo majestic logo threadwatch logo seochat tools logo