[mapserver-users] digitize plugin problem

eleonora at creativalab.com eleonora at creativalab.com
Wed Apr 8 19:30:12 PDT 2015


Hello.
i have some problems with db connection.

Inside include_config.php i wrote
$db_host='xxx';
$db_login='xxx';
$db_pass='xxx';
$database = 'xxxx';

$dsn        = "pgsql://$db_login:$db_pass@$db_host/$database";

In window pop-up the error is DB Error: syntax error

i try different solutions but even if the reported errors are different 
does not work.


$dsn        = 'pgsql://user:pass@localhost:5432/dbname';

error : DB Error: syntax error

$dsn        = new 
PDO("pgsql:host=xxxx;dbname=xxxx;user=xxxx;password=xxxx");

error Unable to include the DB/.php file for '://:PASSWORD@/'

The connection to the database postgres operating normally as I see the 
layers whose data are taken from the db
I installed the PHP Pear DB package and PEAR MDB2

any ideas? after installation I had to restart apache or service 
postgresql?

thank you

Eleonora



More information about the MapServer-users mailing list