Master CakePHP series 1 to connect to the MySQL database, read and conquer CakePHP series 1 to connect to the MySQL database, read this http://www.phpchina.com/html/77/n-33777.htmlnext to explain this framework step by step. First Download framework official home page: http://cakephp.org/:http ://
Read this http://www.phpchina.com/html/77/n-33777.html first
Next, we will describe this framework step by step.
First, download the framework
Official Homepage: http://cakephp.org/
: Http://cakeforge.org/frs? Group_id = 23 & release_id = 428.
Official documents: http://book.cakephp.org/view/305/The-Manual
Third-party Introduction: http://www.1x3x.net/cakephp/
Stable version 1.1.4107692 is selected here
Download the cake_1.1.4107692.zip file and decompress it, as shown in. create a project.
Run: http: // localhost/cakephp_demo/
Modify the name of the database. php. default file to database. php, and modify the configuration information, for example:
ClassDATABASE_CONFIG
{
Var $ default = array ('driver '=> 'mysql ',
'Connect '=> 'MySQL _ connect ',
'Host' => 'localhost ',
'Login' => 'root ',
'Password' => 'root ',
'Database' => 'test ',
'Prefix' => '');
Var $ test = array ('driver '=> 'mysql ',
'Connect '=> 'MySQL _ connect ',
'Host' => 'localhost ',
'Login' => 'root ',
'Password' => 'root ',
'Database' => 'test ',
'Prefix' => '');
}
Run the appeal URL again:
The database connection is successful.