: This article mainly introduces the ThinkPHP database configuration file configphp-Tucson blog. if you are interested in the PHP Tutorial, please refer to it. I found a general ThinkPHP database configuration file to connect to the database, which is relatively simple and suitable for enterprise sites and has very few configuration parameters, in this way, you can directly use the following code when creating small websites such as enterprise types.
If (! Defined ('think _ path') exit ();
Return $ array = array (
'Db _ type' => 'mysql ',
'Db _ host' => 'localhost ',
'Db _ name' => 'hbhongtaizhuangshi ',
'Db _ user' => 'root ',
'Db _ pwd' => 'miima ',
'Db _ port' = & gt; 3306,
'Db _ prefix' => 'zx _',
'Db _ backup' => '/Data/backup ',
'URL _ model' => 0,
);
?>
Place it in the config. php file of ThinkPHP.
The above introduces the ThinkPHP database configuration file configphp-touniu blog, including some content, hope to be helpful to friends who are interested in PHP tutorials.