Skip to content

Commit 8d7f148

Browse files
committed
better db config sample
1 parent 0ff971a commit 8d7f148

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ return [
5555
'db' => [
5656
'username' => 'mysqluser',
5757
'password' => 'mysqlpassword',
58-
'driver' => 'Pdo',
59-
'dsn' => 'mysql:dbname=mysqldbname;host=mysqlhost',
58+
'driver' => 'pdo_mysql',
59+
'database' => 'mysqldbname',
60+
'host' => 'mysqlhost',
6061
'driver_options' => [
6162
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\'',
6263
],

0 commit comments

Comments
 (0)