Use Visual Studio Code to connect to the MySql database and query

Use Visual Studio Code to connect to the MySql database and query

Visual Studio Code is a powerful text editor produced by Microsoft. This article introduces how to use VS Code to connect to the MySql database and execute queries.

How to use

Step 1. Install Visual Studio Code

VS Code is a cross-platform text editor. You can download and install it by visiting the VS Code official website or installing the local green version.

website

Step 2. Open VS Code and install the plugin

Install the plugin:

MySQL

MySQL Syntax

插件1

插件2

Step 3. Start using

In the file menu you can add a database connection:

1

Follow the steps to fill in the server, user name, password, etc.:

2

Connection successful:

3

Right click to execute the query:

4

After writing the SQL script, you can right-click to execute it:

5

Execution Result:

6

Disconnect from the database:

7

This is the end of this article about using Visual Studio Code to connect to MySql database and query. For more related VS Code connection to MySql and query content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • An article to understand the execution process of MySQL query statements
  • Detailed explanation of the execution process of MySQL query statements
  • Detailed explanation of the idea of ​​using Python sql statements to perform multi-condition fuzzy queries on mysql database
  • Detailed graphic explanation of mysql query control statements
  • Example code for converting Mysql query result set into JSON data
  • MySQL query optimization: causes and solutions for slow queries
  • Optimizing the slow query of MySQL aggregate statistics data
  • Specific example of MySQL multi-table query
  • A complete example of mysql querying batch data from one table and inserting it into another table
  • Analyze how a SQL query statement is executed in MySQL

<<:  How to clear floating example code in css

>>:  Learning Vue instructions

Recommend

Summary of practical skills commonly used in Vue projects

Table of contents Preface 1. Use $attrs and $list...

react+antd.3x implements ip input box

This article shares the specific code of react+an...

Setting the engine MyISAM/InnoDB when creating a data table in MySQL

When I configured mysql, I set the default storag...

How to use the MySQL authorization command grant

The examples in this article run on MySQL 5.0 and...

js to realize web message board function

This article example shares the specific code of ...

8 JS reduce usage examples and reduce operation methods

reduce method is an array iteration method. Unlik...

WeChat applet realizes multi-line text scrolling effect

This article example shares the specific code for...

How to open the port in Centos7

The default firewall of CentOS7 is not iptables, ...

In-depth analysis of JDBC and MySQL temporary tablespace

background Temporary tablespaces are used to mana...

VMware Tools installation and configuration tutorial for Ubuntu 18.04

This article records the installation and configu...

Linux View File System Type Example Method

How to check the file system type of a partition ...

Solution to MySQL startup successfully but not listening to the port

Problem Description MySQL is started successfully...

A brief discussion of 3 new features worth noting in TypeScript 3.7

Table of contents Preface Optional Chaining Nulli...