Поиск
Список
Период
Сортировка
Искать

От:
Henry Ilhuicatzi Cortes <henric@iris1.ingenieria.uatx.mx>
Дата:

Hi :
 Im trying to run this CGI.

#!/usr/bin/perl -w

use Pg;


print "Content-type: text/html\n\n";

$database = "henric";
$server = "iris1.ingenieria.uatx.mx";
$conn = Pg::setdb($server,5432,'','',$database);
$namedb = $conn->db;
$error = $conn->errorMessage;

print <
Resultados de Postgres

Hola mundo

Conectado a la base de datos: $namedb
EOF if ($error ne '') { print "ERROR: ", $error; print "\n"; exit 1; } print"Hasta aqui todo esta bien!!"; print qq ( ); When type perl conexion.cgi i get the next result. iris1% perl conexion.cgi Content-type: text/html Resultados de Postgres Conectado a la base de datos: henric
Hasta aqui todo esta bien!! iris1% I think that all it's O.K and then i try to run it in a browser and i get the next result. Conectado a la base de datos: henric ERROR: FATAL 1: SetUserId: user 'nobody' is not in 'pg_shadow' What's wrong? Im using Pg in the new Style. Atte. Henry Ilhuicatzi Cortes Departamento de Ingenieria y Tecnologia Universidad Autonoma de Tlaxcala Mexico.
FAQ