This means that there are three steps to complete the operation of connecting to the database. Ok, let's take it step by step:
1, finish creating the website.
Click the blue "Site" to open the following interface.
Website naming
Server technology
Edit the storage location of the test file. We all developed it locally, so choose the location where your website code exists in the local file.
Defines the url path when the browser opens the preview. Here I am: http://localhost/news. Please note that the path must be accessible, that is, it can be opened in a browser. Otherwise, mysql in the four steps will report the operation of unsuccessful connection.
Do you want to appreciate this document? This is for team development. Click no.
All right, next step, finish and call it a day. In this way, we have completed the first step, added an extra √ and added the fourth step.
2. Get the document type
Click the blue "Document Type" to open the following interface.
We use PHP, and here we choose PHP.
Done. Okay, step two is done. Look, there's another √.
3. Repair the test server
Click the blue "Test Server" to open the following interface.
Display what we configured in the first step, and click OK directly.
Yes, it's ok, but it's not as much as expected. Nothing. Go on.
4. Create MYSQL connection
Click the+indicated by the red arrow above to connect Mysql, and click to open the following interface.
Enter your local information in turn, just as I entered it here.
Then click Select to pop up your database and select the database used for your project news. Okay, okay, it's done.