First, the 3.2.3 database classes and drivers are rewritten with PDO ( ensuring that your server environment opens the PDO extension ), so no matter what the database is based on PDO, Db_type no longer supports PDO settings. You must use the actual database type settings, and no longer distinguish between MySQL and mysqli (Unified set to MySQL) the role of the DB_DSN parameter has changed, so the setting is no longer required by default and is set directly to an empty string.
Other words
Originally PDO Configuration is
' Db_type ' = ' PDO ',
' Db_user ' = ' root ',
' Db_pwd ' = ' 111 ',
' Db_prefix ' = ' think_ ',
' Db_dsn ' = ' Mysql:host=localhost;dbname=thinkphp;charset=utf8 ',
3.2.3 version of MySQL to change to the following
' Db_type ' = ' MySQL',
' db_user ' = ' root ',
' db_pwd ' = ' 111 ',
' db_prefix ' = ' think_ ',
' db_dsn ' = ' Mysql:host=localhost;dbname=thinkphp;charset=utf8 ',
The above describes the thinkphp study note 2, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.