Maintenance script to wrap the mysql binary
[lhc/web/wiklou.git] / includes / libs / rdbms / database / DatabaseMysqli.php
index 31cdd7c..ec69b9d 100644 (file)
@@ -77,7 +77,7 @@ class DatabaseMysqli extends DatabaseMysqlBase {
                } elseif ( substr_count( $realServer, ':' ) == 1 ) {
                        // If we have a colon and something that's not a port number
                        // inside the hostname, assume it's the socket location
-                       $hostAndSocket = explode( ':', $realServer );
+                       $hostAndSocket = explode( ':', $realServer, 2 );
                        $realServer = $hostAndSocket[0];
                        $socket = $hostAndSocket[1];
                }