[FGS] MySQL Database Connection Problem

Julien-Samuel Lacroix jlacroix at mapgears.com
Tue Jan 2 15:18:39 EST 2007


Hi,
Here's a link that explain the problem.
http://www.tech-recipes.com/mysql_tips762.html

In short, do a logical link to /var/lib/mysql/mysql.sock
or change your /etc/my.cnf to point to /tmp/mysql.sock

Julien

Eric Legge Smith wrote:
> Hello List,
> 
> I have installed fgs-mapserver_phpmapscript_4.8.2 and
> fgs-php_mysql-module-4.4.2 on Debian linux (sarge) and after editing
> php.ini.template to include 'extension=mysql.so', the Mapscript and MySQL
> entries are displayed in a php info page. However, when trying a basic
> connection to a MySQL database the following error occurs ...
> 
> Warning: mysql_connect(): Can't connect to local MySQL server through
> socket '/tmp/mysql.sock'
> 
> I saw a post regardingthis problem that required the path to be changed,
> but I can't determine what the new path should be and in which file the
> path statement is located?
> 
> Can anyone advise me on how to solve this problem?
> 
> Thank you
> Eric
> 
> 
> 
> _______________________________________________
> Foss-gis-suite mailing list
> Foss-gis-suite at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/foss-gis-suite

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Foss-gis-suite mailing list