Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old November 4th, 2000, 02:24 PM
chr1701 chr1701 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 11 chr1701 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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

Reply With Quote
  #2  
Old November 4th, 2000, 03:44 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Why don't you just click the search link on this page and type "mysql" as search keyword?

Reply With Quote
  #3  
Old November 5th, 2000, 06:04 AM
chr1701 chr1701 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 11 chr1701 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Did you try that? I did, and all i found were PHP scripts. I even tried Mysql +Perl and found PHP scripts.

Reply With Quote
  #4  
Old November 5th, 2000, 06:23 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #5  
Old November 10th, 2000, 11:08 AM
need2surf1 need2surf1 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 0 need2surf1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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).]

Reply With Quote
  #6  
Old November 13th, 2000, 02:31 PM
chr1701 chr1701 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 11 chr1701 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Mysql-Sample


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway