Announcement

Collapse
No announcement yet.

How to connect MySQL Database from Perl?

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to connect MySQL Database from Perl?

    WordPress Hosting on SSD Servers
    Hello All,

    In order to connect MySQL database with Perl script one need to use below mentioned sample script:

    #!/usr/bin/perl

    use DC;

    $db = DC->connect("dbi:mysql:<database>","<username>","<pas sword>")
    or die("Couldn't connect");

    $db->disconnect;

    Thanks,

    Shane G.
    AccuWebHosting.Com
Working...
X
Sign up for a News Letter Click here to sign up