yesterday, two sophomores (We 3 gproxy Installation Problems, no connection I went to the database and asked, it is found that Wamp configuration problems, both of them are Vista System , the result is half This is not true, but I did not find any mistakes when I tried to find them. I finally found that the configuration was completed early, and I just restarted it. Vista restart your computer and dizzy ...... for convenience php installation and configuration for beginners Wamp (Here we use wamp2.0 ), send this post for reference. The procedure is as follows:
Step 1, Double-click to installWampI will not go into details here. After installation, the English interface is used by default. if you wantView Chinese characters, right-click the bottom right corner of the desktopWampIcon---- "Language" ---- "Chinese".
Step 2, Just installed Wamp The icon is half-red and half-white, indicating that the service is not enabled. Click Wamp Icon ----" Open all services " In normal cases, the logo turns to white, indicating that the service is enabled; if the icon changes Yellow, meaning Wamp Used 80Other portsProgramOr the process is in use. I will give you a secret: thunder and Kabbah occupies 80 Port! In its setting options, Thunder can change the odd port to another port. If you know whether you can change it, you can directly change it from the process. Kill Drop ......
In addition CMD Check which process is occupied by the command line 80 Port: Open CMD , Enter Inbound: Netstat-Aon | findstr "80" , View "0.0.0.0 : 80"Process of this line PID Number (the last column), remember this PID , Such 1260" And then go to the Process Manager. ----" View "----" Select Columns "---- Check "PID (Process ID Character) "----" OK " , Set PID Is 1260" Process KillDrop, OK.
Step 3For Chinese users, the first thing to set after installation isMySQLDefault DatabaseEncoding changedUTF-8In this way, many Chinese garbled characters can be ruled out:Wamp5Select open from the menuMy (Wamp). ini,SetDefault-character-set = utf8,Then restartWamp5.
Step 4The default password of the database is null.PhpMyAdminSet inRootThe account password is123456. How to Set it?-->Note thatMySQLIn the consoleCMDMedium:
1. Open CMD , 2. First CD To the root directory (input "CD ../" ), 3. Note: If you want to enter a root directory, such as drive F, enter "F:" And press Enter. Instead of "cd f:", do not. 4. Again CD To your Wamp Install MySQL \ bin \ , Such "Cd f: \ PHP \ Wamp \ bin \ mysql \ mysql5.0.45 \ bin \" , 5. Input "Mysqladmin-u root-P password 123456" , 6. Display "Enter Password" Prompt you to enter the password and press Enter. Display OK . Of course, after modification, you must follow the modification PhpMyAdmin Configuration File Config. Inc. php (In Wamp \ apps \ phpmyadmin2.10.1 \ ). Otherwise PhpMyAdmin You cannot enter the database:
$ Cfg ['servers'] [$ I] ['user'] = 'root '; $ cfg ['servers'] [$ I] ['Password'] = '000000 ';
Step 5, Because Mysql4.1 Later versions have changed the password verification method. Wamp5 Used in Php4.x , Then Enable MySQL Of Old Password FunctionOtherwise, you cannot log on. PhpMyAdmin . In Wamp5 Select MySQL/MySQL Console, and then enter the following command:
Mysql> set password for 'root' @ 'localhost' = old_password ('123 '); Press enter to prompt OK .
Step 6, Wamp5 The default time zone is Greenwich Mean Time. (GMT) , Which means Wamp5 Default The server time zone is GMT But we can change the default time zone of the server to correspond to Beijing time. Open Wamp5 Menu In PHP. ini At the end of the document, add the followingCodeYou can:
[Date]; defines the default timezone used by thedate functions date. timezone = "Asia/Shanghai"
OK, restart Wamp , Open "Http: // localhost/PHPmyAdmin/" You can view the database information. If an error is displayed Vista ?), We recommend that you restart your computer.
Also, it is recommended that you do not set Wamp Install it on drive C because your phpProjectThe file must be stored at www. in the folder, once the system fails or the system crashes or reinstalls the system, your project files are easily lost. Change the Database Password grant all on database. Table to root @ localhost identified by "Dingding";