diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-23 17:05:08 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-23 17:05:08 -0700 |
commit | d30892ea601e9131c6dc3b25aeee1f258f72a104 (patch) | |
tree | 839c836dabc366e219cb201db6ce683a02b3f55b /include/dba/dba_driver.php | |
parent | 04ac04e0ada6b8dbe3f512379abd2859eb758173 (diff) | |
download | volse-hubzilla-d30892ea601e9131c6dc3b25aeee1f258f72a104.tar.gz volse-hubzilla-d30892ea601e9131c6dc3b25aeee1f258f72a104.tar.bz2 volse-hubzilla-d30892ea601e9131c6dc3b25aeee1f258f72a104.zip |
pdo hacks
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-x | include/dba/dba_driver.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php index b4cda6d8e..afe209feb 100755 --- a/include/dba/dba_driver.php +++ b/include/dba/dba_driver.php @@ -53,7 +53,14 @@ class DBA { } else { - if(!($port)) + + // attempt to use the pdo driver compiled-in mysqli socket + // if using 'localhost' with no port configured. + // If this is wrong you'll need to set the socket path specifically + // using a server name of 'mysql:unix_socket=/socket/path', setting /socket/path + // as needed for your platform + + if((!($port)) && ($server !== 'localhost')) $port = 3306; } |