[mapserver-users] Open failed for OGR connection

Frank Warmerdam warmerdam at pobox.com
Sun Sep 26 13:24:22 EDT 2010


Murat Beyhan wrote:
> But when I try to read data from mysql database it doesn't work for it.
> and mapserver gives error as follows
...
> What is wrong with my procedures. Please help me.
> Murat

Murat,

I can only point out the two obvious possible issues.

1) Are you really really really really sure your MapServer is using
the same GDAL build that you are using at the commandline?  I know, everyone
is sure but sometimes when they check they realize it isn't.   Keep in mind
that the shared library search path when run as a cgi from apache may be
different than on your user account.  Possibly the GDAL used by MapServer
is not built with mysql support - it is not enabled by default.

2) Perhaps there is a permissions issue when running in the apache
environment, though this seems unlikely given that you are passing an
explicit userid and password.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list