File tree Expand file tree Collapse file tree
user_guide_src/source/database/configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ class Database extends Config
2323 'compress ' => false ,
2424 'strictOn ' => false ,
2525 'failover ' => [],
26+ 'port ' => 3306 ,
2627 ];
2728
2829 // ...
Original file line number Diff line number Diff line change 11<?php
22
33// PDO
4- $ default ['DSN ' ] = 'pgsql:host=localhost;port=5432;dbname=database_name ' ;
4+ $ default = [
5+ 'DSN ' => 'pgsql:host=localhost;port=5432;dbname=database_name ' ,
6+ // ...
7+ ];
58
69// Oracle
7- $ default ['DSN ' ] = '//localhost/XE ' ;
10+ $ default = [
11+ 'DSN ' => '//localhost/XE ' ,
12+ // ...
13+ ];
Original file line number Diff line number Diff line change 11<?php
22
3- $ default ['DSN ' ] = 'DBDriver://username:password@hostname:port/database ' ;
3+ $ default = [
4+ 'DSN ' => 'DBDriver://username:password@hostname:port/database ' ,
5+ // ...
6+ ];
Original file line number Diff line number Diff line change 11<?php
22
33// MySQLi
4- $ default ['DSN ' ] = 'MySQLi://username:password@hostname:3306/database?charset=utf8&DBCollat=utf8_general_ci ' ;
4+ $ default = [
5+ 'DSN ' => 'MySQLi://username:password@hostname:3306/database?charset=utf8&DBCollat=utf8_general_ci ' ,
6+ // ...
7+ ];
8+
59// Postgre
6- $ default ['DSN ' ] = 'Postgre://username:password@hostname:5432/database?charset=utf8&connect_timeout=5&sslmode=1 ' ;
10+ $ default = [
11+ 'DSN ' => 'Postgre://username:password@hostname:5432/database?charset=utf8&connect_timeout=5&sslmode=1 ' ,
12+ // ...
13+ ];
Original file line number Diff line number Diff line change 11<?php
22
3- $ default ['port ' ] = 5432 ;
3+ $ default = [
4+ // ...
5+ 'port ' => 5432 ,
6+ ];
You can’t perform that action at this time.
0 commit comments