Skip to main content
Prototype for a MySQL database connection. This prototype uses the host, port, database name, user and password values to create a PDO connection. Extra options exist to set the charset and network compression. The init command will be executed when the connection is created.