Install XAMPP
Go to https://www.apachefriends.org/zh_cn/index.html page to download XAMPP
Open the XAMPP Control Panel
In the XAMPP Control Panel, we can see that the radio button in the Service column is slightly different. "X" means that the corresponding component has not been set as a Windows system service; "Blank" means not Install the component; there is also a "√", indicating that the component has been installed as a Windows system service and can be started.
Modify Apache’s port number
../apache/conf/http.conf file changes port 80 to 82
../apache/conf/httpd-ssl.conf file changes port 443 to 4433
Install and start Service
Just click the "X" in front of Apache and MySQL, and click "Yes" in the pop-up dialog box to set them as system services. Click the start button on the XAMPP control panel to start the Apache server and MySQL server. The default website directory of Apache is..xampphtdocs.
Because the default password of mysql after installing xampp is empty, enter http://localhost:82/phpmyamdin on the browser address, and you can log in to phpmyadmin. Go to the database control panel, and then select the database named mysql, as shown in the figure. It can be seen that in the user table, the password of the root user is empty.
In the SQL option, execute the following code to change the database password:
UPDATE user SET password=PASSWORD('root') WHERE user='root';
Modify the configuration file, ..phpMyAdminconfig.inc.php
file set $cfg['Servers'][$i]['password'] to the corresponding Password is enough.
Copyright statement: This article is an original article by blogger Lang Ya Studio and may not be reproduced without the permission of the blogger.