PDO_MYSQL DSNConnecting to MySQL databases DescriptionThe PDO_MYSQL Data Source Name (DSN) is composed of the following elements:
Examples
Example #1 PDO_MYSQL DSN examples The following example shows a PDO_MYSQL DSN for connecting to MySQL databases: mysql:host=localhost;dbname=testdb mysql:host=localhost;port=3307;dbname=testdb mysql:unix_socket=/tmp/mysql.sock;dbname=testdb Notes
|