The ThinkPHP database configuration file config. php-touniu blog ,. The ThinkPHP database configuration file config. in the php-touniu blog, I found a general ThinkPHP database configuration file, which is used to connect to the database. it is relatively simple and suitable for enterprise sites. it is used to configure the ThinkPHP database configuration file config. php-Tucson blog,
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.
Found a general ThinkPHP database configuration file, used to connect to the database, relatively simple, suitable for enterprise sites, configuration...