1. In the DOS command window input mysql-hlocalhost-uroot-p Enter the MySQL database,
Where-H indicates the server name, localhost means local,-U is the database user name, root is the MySQL default user name,-p is the password, if the password is set, you can link the input directly after-p,
such as:-p123456, the user does not set a password, display enter password, the direct carriage return.
Note that if your MySQL is not installed in the C drive, you will need to use the DOS command to go to the bin directory in the MySQL installation directory.
Take My computer as an example, here's how:
Enter D: Enter the D drive and enter the bin directory of the MySQL in the input CD D:\Tools\MySQL5.5.25\bin into the Mysql-hlocalhost-uroot-p
2.wampservice a way to configure multiple sites: (with a similar URL to access the way)
A. Open wamp\bin\apache\apache2.2.21\conf\httpd.conf, find # include conf/extra/httpd-vhosts.conf # remove
B. Open the extra/httpd-vhosts.conf file; Add similar content to the last: (file path is the path of your own installer)
DocumentRoot "D:/wamp/www/aaa" (this is the file path where you put the program)
ServerName www.aaa.com (This is your own definition of the domain name)
Example: <virtualhost *:80>
DocumentRoot "D:/wamp/www/discuz_x3.1_upload"
ServerName www.dz.com
</VirtualHost>
C. Find C:\Windows\System32\drivers\etc\hosts This file was last added: (Change this file if you deny access, you can go to the Control Panel, change the user Account Control settings, turn off UAC)
127.0.0.1 www.aaa.com (This is your own definition of the domain name)
D. Save and restart the service. In Browser input: www.aaa.com view effects. END
3.APMService a way to configure multiple sites: (local test environment, localhost: port number)
A. Locate the httpd.conf file Listen 80, and then add a corresponding port for example: Listen 81. -----------(around 53 rows)
B. At the default virtual host, change the port and the corresponding folder name (that is, the path). ------------(around 494 rows)
C. Restart the service.
Note: default access to localhost; New added case: localhost:81
www/has 3 folders, where htdocs/is the site file
4. Provide a simple way to configure multi-site virtual machines httpd.conf file in Wampservice server
A. Plus one port: Listen 81
B. Configuring the virtual hostname: <virtualhost *:81>
DocumentRoot "D:/wamp/www/discuz_x3.1_upload"
ServerName localhost:81
</VirtualHost>
PHP runtime Environment, server-related configuration