class MySqlDriver extends AbstractMySQLDriver (View source)

Traits

Methods

connect(array $params, string|null $username = null, string|null $password = null, array $driverOptions = [])

Create a new database connection.

getName()

{@inheritdoc}

Details

Connection connect(array $params, string|null $username = null, string|null $password = null, array $driverOptions = [])

Create a new database connection.

Parameters

array $params
string|null $username
string|null $password
array $driverOptions

Return Value

Connection

Exceptions

InvalidArgumentException

getName()

{@inheritdoc}

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.