Reply to PHP-Mysql Socket Problem

Your name:

Reply:


Posted by balavignesh on 07/07/06 17:16

Hello frends!

I want to connect with mysql using php.

In my mysql "my.cnf" file i have specified the socket for both client
and server as
"/usr/local/mysql/var/mysql.sock"

In my "php.ini" file, for mysql socket i have specified

/usr/local/mysql/var/mysql.sock as the default path.

But i can't able connect with database. it shows DB connection failed.


My phpinfo() gives the following two lines for mysql sock

MYSQL_SOCKET /tmp/mysql.sock
mysql.default_socket /usr/local/mysql/var/mysql.sock /usr/local/mysql/var/mysql.sock


If i set the socket as /tmp/mysql.sock in "my.cnf" , I CAN ABLE TO
CONNECT.

What is the difference between MYSQL_SOCKET and mysql.default_socket ?

Advanced thanks
Bala

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация