note 61391 added to ref.pdo-mysql.connection

From: Date: Thu, 02 Feb 2006 07:48:19 +0000
Subject: note 61391 added to ref.pdo-mysql.connection
Groups: php.notes 
Request: Send a blank email to php-notes+get-102859@lists.php.net to get a copy of this message
Guys i think you lost an important thing when doing this extension. For mysql.so I could put path to the default mysql socket in php.ini (mysql.default_socket) and then just use mysql_connect("localhost", ...) to connect to mysql server via this socket. It was fine because php ignores my.cnf files that are used by mysql clients. PDO extension completelly ignores this parameter in php.ini and tries to connect to compiled in unix socket when I use PDO('mysql:host=localhost;dbname=...',...). I think this is wrong because scripts can't be portable to another host/OS without changing path anymore. Please keep an eye on it. ---- Server IP: 195.54.192.44 Probable Submitter: 195.12.69.34 ---- Manual Page -- http://www.php.net/manual/en/ref.pdo-mysql.connection.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61391 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61391&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61391&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61391&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61391&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61391&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61391&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61391&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61391&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102859) next »