|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. ------------------ |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Connecting mysql from the perl script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|