Use PHPstudy to start the MySQL service and create a database

Hello everyone, I am a programmer who is always on the road. Today I will share with you how to download and use phpstudy to start the MySQL service and manually create a database.

Step 1: Download phpstudy from the official website

Official website address

1. When we enter the above URL in the browser address bar, we will see the following interface

My system here is win7, so I choose the Windows version
Here we can choose the version we need to download according to the system we use. I am using the Windows system here. After clicking to enter, you can select the version to download.
Insert image description here

Step 2: Unzip and use

1. When the download is completed, we can find a phpStudy.zip compressed package in our download path

Insert image description here

2. After we decompress, open the decompressed folder and you will see the following exe file. Follow the picture below.

Insert image description here

3. After we click Start, the mark in the picture below appears, and the MySQL service is started. Pay attention to the mark at the top of the picture below. MySQL has turned green. Whether Apache is started here will not affect our use of MySQL. We will not do it here. More descriptions

Insert image description here

Some friends may encounter some troubles at this step, mostly due to environmental issues. For example:
port occupation

If the port is occupied, we can enter the netstat -ano series of commands in the terminal to check the port status, and find the corresponding port to unoccupy it.

Netstat -an in WINDOWS view port command
cmd displays a list of all open ports on the computer
netstat -ano displays a list of all occupied ports
netstat -ano | findstr “80” displays the details of port 80 occupied
tasklist | findstr “680 ” Query which application occupies the port

In most cases, when we install it for the first time, the default port should be 3306. If not, you can check and modify it in the following ways

1. We click the MySQL Manager button in the picture above
Insert image description here
2. Select MySQL-Front in the subordinate menu
Insert image description here
3. We will come to the following interface
Insert image description here
4. Click on the file in the upper left corner -> click to open login information -> click on Properties , you will enter the following interface
where you can modify the port number (in the same way, you can also modify other information)
Insert image description here

After dealing with the above problems, I can try to create a database. At this time, let us return to this interface.
Insert image description here

Step 3: Create a database

1. Right-click localhost—>Click New—>Click Database Insert image description here
2. Database creation interface

Insert image description here

3. Created successfully

Insert image description here

Guess you like

Origin blog.csdn.net/m0_56026872/article/details/118093950