Classes/Console/Command/InstallCommandController.php
public function databaseConnectCommand($databaseUserName = '', $databaseUserPassword = '', $databaseHostName = '127.0.0.1', $databasePort = '3306', $databaseSocket = '', $databaseDriver = 'mysqli')
    {
        $this->executeActionWithArguments('databaseConnect', ['host' => $databaseHostName, 'port' => $databasePort, 'username' => $databaseUserName, 'password' => $databaseUserPassword, 'socket' => $databaseSocket, 'driver' => $databaseDriver]);
    }
public function databaseConnectCommand($databaseUserName = '', $databaseUserPassword = '', $databaseHostName = '127.0.0.1', $databasePort = '3306', $databaseSocket = '', $databaseDriver = 'mysqli')
    {
        $this->executeActionWithArguments('databaseConnect', ['host' => $databaseHostName, 'port' => $databasePort, 'username' => $databaseUserName, 'password' => $databaseUserPassword, 'socket' => $databaseSocket, 'driver' => $databaseDriver]);
    }
Connect to database

Database connection details

@param string $databaseUserName User name for database server
@param string $databaseUserPassword User password for database server
@param string $databaseHostName Host name of database server
@param string $databasePort TCP Port of database server
@param string $databaseSocket Unix Socket to connect to
@param string $databaseDriver Database connection type
@internal