Thread: Mysql-Sample

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    11
    Rep Power
    0
    Hi,

    i desparately need a sample program which connects to a MYSQL-Database. Can anyone of you please give me a link or send me one?

    Thanks,
    Chris
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Why don't you just click the search link on this page and type "mysql" as search keyword?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    11
    Rep Power
    0
    Did you try that? I did, and all i found were PHP scripts. I even tried Mysql +Perl and found PHP scripts.
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Be sure to select "Perl" at "Search Forum/Archive:"

    If you click the search link while viewing Perl forum, it defaults to Perl for Search Forum/Archive:.

    There are tons of examples there, not just a few.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    0
    Rep Power
    0
    try this

    my $dbh = Mysql->connect('this is the host name you can leave it blank if your host is on the same ip','username','password')or die $Mysql::db_errstr;


    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by freebsd:
    Be sure to select "Perl" at "Search Forum/Archive:"

    If you click the search link while viewing Perl forum, it defaults to Perl for Search Forum/Archive:.

    There are tons of examples there, not just a few.
    [/quote]



    [This message has been edited by need2surf1 (edited November 10, 2000).]
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    11
    Rep Power
    0
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by need2surf1:
    try this

    my $dbh = Mysql->connect('this is the host name you can leave it blank if your host is on the same ip','username','password')or die $Mysql::db_errstr;
    [/quote]

    Thanks, this was all i needed; i always tried to connect with DBI::connect and although i installed the MySQL driver it didn't work...
    But Mysql->connect works. Thanks!

    Chris


IMN logo majestic logo threadwatch logo seochat tools logo