
May 13th, 2000, 03:31 PM
|
|
Junior Member
|
|
Join Date: May 2000
Posts: 2
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
|