MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 13th, 2000, 03:31 PM
ceramicarte ceramicarte is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 2 ceramicarte User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

We would like to generate a mysql select query from a perl script.
Unfortunately we are facing problems in connecting mysql from the perl script.
We think the connection part of the script should be something like this:

$DSN = "DBI:mysql:cac:localhost";
$dbh = MySql->Connect('localhost','cac');



$SQL= "SELECT * FROM artigos where Familia='VASOS';" or die "erro ao seleccionar Queryn";
$dbh->Query($SQL);



Our server name is “Ceramicarte”. Our database name is “cac” (you prepared it for us two weeks ago and we already create a
table and filled it with data).
Can you help us with this problem? Do we need to provide our password somewhere on the script?

Best regards,

LSoares


Reply With Quote
  #2  
Old May 14th, 2000, 02:49 AM
chinnavi
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
hai

your ? is not clear!
what do u want to do exactly?

if you want to connect to MySQL
thro perl it is so Easy...
*Through DBI*

Read some perl DBI tutorials.


------------------

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Connecting mysql from the perl script


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 | 
  
 





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