The three software used in this installation instance can be downloaded directly from the official website. For convenience, you can also package and download them directly from your own CSDN resources. Three installation files: CSDN High Speed: download. csdn. netdetailyousuosi5811053 IV. MySQL download, installation and configuration 1. Official download URL: htt
The three software used in this installation instance can be downloaded directly from the official website. For convenience, you can also package and download them directly from your own CSDN resources. Three installation files show: CSDN High Speed: http://download.csdn.net/detail/yousuosi/5811053 4, MySQL download, installation and configuration 1, official download site address: htt
The three software used in this installation instance can be downloaded directly from the official website. For convenience, you can also package and download them directly from your own CSDN resources.
Three installation files:
CSDN high speed:
Http://download.csdn.net/detail/yousuosi/5811053
Iv. MySQL download, installation and configuration
1. Official download
Official website address: Installer (Windows), go to the MySQL download page in Windows: http://dev.mysql.com/downloads/installer/, click the most recent MySQL Server, and then click MySQL Community Server 5.5 ?, Go to the download page of this installer at http://dev.mysql.com/downloads/mysql/5.5.html#downloads. click other Downloads: In.
Windows (x86, 32-bit), MSI Installer
Click the down button next to it. In this way, you still need to register the download. If you are bored, you can directly download the three packaged files from my CSDN resources...
2. Install MySQL
MySQL and PHP are not necessarily related. PHP can use MySQL, C #, java, and python. Therefore, MySQL is completely installed independently and should not be considered, by default, the user name and password need to be set in the middle. My user name is root and the password is 123...
3. Configure PHP and Apache
The default settings of MySQL are powerful enough. You need to configure PHP and Apache. After configuration, the PHP program can operate the MySQL database.
The preceding configuration only loads the PHP basic dynamic link library php5apache2_2.dll. If you perform MySQL database operations, you also need to load the dynamic link library for the corresponding database operations. Of course, if you want to perform other operations such as examples, you also need to load the corresponding dynamic link library. Here, we load 7:
; Extension = php_curl.dll
; Extension = php_gd2.dll
; Extension = php_mbstring.dll
; Extension = php_mysql.dll
; Extension = php_mysqli.dll
; Extension = php_pdo_mysql.dll
; Extension = php_xmlrpc.dll
The procedure is as follows:
(1) Go to the php installation directory D: \ Server \ PHP and set php. copy ini-development and change it to php. ini, and then open php. ini, remove the ";" before the configuration of the seven rows near the 960 rows, as shown in:
(2) search for "extension_dir" and change the original extension_dir = "./" near row 819:
Extension_dir = "D:/Server/PHP/ext"
:
That's all. These seven dynamic link library files are in this folder.
(2) use NotePad to open the configuration file in Apache and add a line of code at the end of the file:
PHPIniDir "D: \ Server \ PHP"
:
(3) Don't forget to restart Apache in the last step !!
4. Test
(1) create a file test. php In D: \ Server \ Web and enter the following code:
...
'; Echo' the connection to the database has been successfully closed ';}?>
:
(2) enter the address http: // localhost/test. php In the browser. The result is:
References:
Http://down.chinaz.com/server/201104/230_4.htm
Http://wenku.baidu.com/view/598705baf121dd36a32d82ac.html
Http://www.cnblogs.com/tigertall/archive/2010/01/28/1658869.html
Http://hi.baidu.com/guolaiba/item/acb9eadc385d5af193a974be
Http://wenku.baidu.com/view/37e8b7a6284ac850ad024232.html