DB::DBAL

The World's Most Powerful Light-Weight DBAL

MySQL

The MySQL extension is a router extension that determines whether to use MySQLi or Classic MySQL. This extension has two children, MySQLi and MySQLc, which may be accessed directly (DB::MySQLi()).

Database Type:

1
DB::MySQL()

Connection Information

The connect() method requires 3 parameters; host, username, and password. A fourth parameter, database name is optional.

1
2
DB::MySQL()->connect('host', 'username', 'password');
DB::MySQL()->connect('host', 'username', 'password', 'database name');

Unsupported Methods

MySQL supports all DB::DBAL methods.