Install mysql on Windows and build the mysql environment in vscode

Insert image description here
Set the account password, add users,
Insert image description here
Insert image description here
Insert image description here
install the configuration
Insert image description here
Insert image description here
, and click Next to return to the product configuration interface. It shows that the server has been installed.
Insert image description here
We click Next to enter the router configuration. I did not set the passwordd here, that is, the password is default.
Insert image description here
here. . . . . . test connection displays ❌. . . Why
Insert image description here
Insert image description here
not install it directly? The password is 123456. After checking, it shows that you can connect.
Click Next and return to the product configuration interface.
Insert image description here
Insert image description here
After the installation is completed, the workbench and shell interfaces are automatically opened.
Insert image description here
Insert image description here
Click on the installation package we downloaded before, and you can see the products we installed. In this interface, you can After upgrading the product
Insert image description here
and canceling the upgrade, you can see the installed product
Insert image description here
and configure the environment variables. Add the installation directory of mysql to the new system environment variable.
Insert image description here
Add the path to the bin of mysql in the system path
Insert image description here
. Open cmd and verify the installation of mysql.
Insert image description here

Build mysql environment in vscode

  1. Install the following plugins
    Insert image description here
  2. Open cmd and enter mysql, enter the following statement
    Insert image description here
  3. Open the vscode project and click the plus sign next to mysql below. Fill in 127.0.0.1 for host, fill in root for user, fill in password, and keep other things unchanged.
    Insert image description here
    The second method is to directly download the mysql plug-in
    Insert image description here
    and connect and create in the database that appears on the left.
    Insert image description here

Guess you like

Origin blog.csdn.net/ZHorcrux/article/details/130502249