|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
Why don't you just click the search link on this page and type "mysql" as search keyword?
|
|
#3
|
|||
|
|||
|
Did you try that? I did, and all i found were PHP scripts. I even tried Mysql +Perl and found PHP scripts.
|
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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).] |
|
#6
|
|||
|
|||
|
<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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Mysql-Sample |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|