source/Core/Database/Adapter/Doctrine/Database.php
protected function getPdoMysqlConnectionParameters(array $connectionParameters)
    {
        $pdoMysqlConnectionParameters = [
            'driver'   => 'pdo_mysql',
            'host'     => $connectionParameters['databaseHost'],
            'dbname'   => $connectionParameters['databaseName'],
            'user'     => $connectionParameters['databaseUser'],
            'password' => $connectionParameters['databasePassword'],
            'port'     => $connectionParameters['databasePort'],
        ];

        $this->addDriverOptions($pdoMysqlConnectionParameters);
        $this->addConnectionCharset(
            $pdoMysqlConnectionParameters,
            $connectionParameters['connectionCharset']
        );

        return $pdoMysqlConnectionParameters;
    }
protected function getPdoMysqlConnectionParameters(array $connectionParameters)
    {
        $pdoMysqlConnectionParameters = [
            'driver'   => 'pdo_mysql',
            'host'     => $connectionParameters['databaseHost'],
            'dbname'   => $connectionParameters['databaseName'],
            'user'     => $connectionParameters['databaseUser'],
            'password' => $connectionParameters['databasePassword'],
            'port'     => $connectionParameters['databasePort'],
        ];

        $this->addDriverOptions($pdoMysqlConnectionParameters);
        $this->addConnectionCharset(
            $pdoMysqlConnectionParameters,
            $connectionParameters['connectionCharset']
        );

        return $pdoMysqlConnectionParameters;
    }
protected function getPdoMysqlConnectionParameters ( array $ connectionParameters ) { $ pdoMysqlConnectionParameters = [ 'driver' => 'pdo_mysql' , 'host' => $ connectionParameters [ 'databaseHost' ] , 'dbname' => $ connectionParameters [ 'databaseName' ] , 'user' => $ connectionParameters [ 'databaseUser' ] , 'password' => $ connectionParameters [ 'databasePassword' ] , 'port' => $ connectionParameters [ 'databasePort' ] , ] ; $ this -> addDriverOptions ( $ pdoMysqlConnectionParameters ) ; $ this -> addConnectionCharset ( $ pdoMysqlConnectionParameters , $ connectionParameters [ 'connectionCharset' ] ) ; return $ pdoMysqlConnectionParameters ; }
Get the connection parameters for the doctrine pdo_mysql driver

The pdo_mysql driver accepts an array with the following keys

user (string): Username to use when connecting to the database.
password (string): Password to use when connecting to the database.
host (string): Hostname of the database to connect to.
port (integer): Port of the database to connect to.
dbname (string): Name of the database/schema to connect to.
charset (string): The charset used when connecting to the database.
unix_socket (string): Name of the socket used to connect to the database.

host/port and unix_socket are mutually exclusive. Currently only host/port is supported by this database adapter

@param array $connectionParameters The parameters to connect to the database using the doctrine pdo_mysql driver

@return array
Get the connection parameters for the doctrine pdo_mysql driver