From 393896a7010bf2da19674aa6a63a693a0d800233 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 12 Nov 2009 14:42:37 -0800 Subject: Initialize the database config with the port number if it is specified. Also set it up so the mysqli constructor will split it into host and port for the call to the mysqli constructor. Fixes ticket: #780 --- installer/cli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer/cli.php') diff --git a/installer/cli.php b/installer/cli.php index 182c3d26..f736ffcb 100644 --- a/installer/cli.php +++ b/installer/cli.php @@ -95,7 +95,7 @@ function parse_cli_params() { $config["dbname"] = $argv[++$i]; break; case "-h": - $config["host"] = $argv[++$i]; + list ($config["host"], $config["port"]) = explode(":", $argv[++$i]); break; case "-u": $config["user"] = $argv[++$i]; -- cgit v1.2.3