pdo hacks

This commit is contained in:
zotlabs
2016-10-23 17:05:08 -07:00
parent 04ac04e0ad
commit d30892ea60
2 changed files with 18 additions and 4 deletions

View File

@@ -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;
}