1. Virtual Machine Side 1. Find the mysql configuration file
Press the "i" key to enter the edit mode, find the following item, and change the address to "0.0.0.0" Restart mysql service
2. Connect to MySQL
Enter the code and press Enter, and you will be prompted to enter the database password 3. Authorize users
Can be root user 4. Refresh authorization
2. Windows 1. Open VScode and install the following 2 plug-ins This will appear in VScode 2. Now you can connect to the MySQL database 2.1 Enter the IP address of the virtual machine If you don't know, you can use the following command to query
2.2 Enter the username and password (the user and password previously authorized on the virtual machine) 2.3 Output port number (default 3306) 2.4 You don’t need to input this item, just press Enter At this point you can see that VScode has connected to the MySQL database on the virtual machine. The above is a detailed explanation and integration of the method of using VScode to connect to the virtual machine MySQL in the window environment introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: In-depth understanding of JavaScript callback functions
>>: Detailed tutorial on installing Tomcat9 windows service
1. Create tables <br /> First, create two t...
background A colleague is working on his security...
About JS, CSS CSS: Stylesheet at the top Avoid CS...
This article shares the specific code of js to re...
This article mainly introduces the sample code of...
Open the scheduled task editor. Cent uses vim to ...
Preface During the development process, we someti...
Table of contents 1. Steps to use Jquery: (1) Imp...
1: Differences in speed and loading methods The di...
I personally feel that the development framework ...
JSON data is displayed and formatted on the HTML ...
Preface In the development of small programs, we ...
public function json_product_list($where, $order)...
Solution process: Method 1: The default kernel ve...
Copy code The code is as follows: a:link { font-s...