1 min read

DSN's

I always forget how to structure a DSN.. what is that separator again? Is it , or ; and do we use = or :?

<type>:dbname=<name>;host=<host>

Type is the type of service you are connecting to:

  • mysql
  • sqlite
  • pgsql
PHP: Search results