Skip to content

Commit

Permalink
Merge pull request #3650 from michalsn/fix/user_guide_syntax
Browse files Browse the repository at this point in the history
Fix some user guide syntax mistakes
  • Loading branch information
MGatner authored Sep 16, 2020
2 parents b23b97a + 0748fca commit 87cc873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user_guide_src/source/database/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ driver's underlying native PHP extension, like this::
.. note:: If you do not specify a DSN string for a driver that requires it, CodeIgniter
will try to build it with the rest of the provided settings.

You can also set a Data Source Name in universal manner (URL like). In that case DSNs must have this prototype:
You can also set a Data Source Name in universal manner (URL like). In that case DSNs must have this prototype::
$default['DSN'] = 'DBDriver://username:password@hostname:port/database';
$default['DSN'] = 'DBDriver://username:password@hostname:port/database';

To override default config values when connecting with a universal version of the DSN string,
add the config variables as a query string:
add the config variables as a query string::

// MySQLi
$default['DSN'] = 'MySQLi://username:password@hostname:3306/database?charset=utf8&DBCollat=utf8_general_ci';
Expand Down

0 comments on commit 87cc873

Please sign in to comment.