|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-10-26 10:14 UTC] pookey at pookey dot co dot uk
Description: ------------ This probably shoudln't be filed under this 'type', but there's not type of PDO as of yet (#pecl.php EFNet advised this was the place to report PDO bugs these days) There is no way (at least, no documented way) of specifying the socket to use to connect to MySQL. I did notice that unix_socket is used in the C code for the module, but I couldn't set this via PHP. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
Did you try this? <?php $pdo = new PDO("mysql:dbname=test;unix_socket=/path/to/socket/mysql.sock"); ?>