Essential tool for database development: DataGrip tool installation guide

DataGrip is a powerful cross-platform database integrated development environment, an all-round database tool that supports a variety of database systems, including MySQL, PostgreSQL, Oracle, etc.; it provides intelligent code editing functions, including syntax highlighting, code completion, etc., to improve development efficiency . Provides an intuitive visual interface to easily browse, query and modify data in the database.

Table of contents

DataGrip installation tutorial

DataGrip usage tutorial

Create database

Create table structure

SQL statement operations

DataGrip usage tips

DataGrip skinning operation

write at the end


DataGrip installation tutorial

Open the DataGrip official website and find the download interface. Because the software memory is relatively large, here we choose the zip compressed package to download. If the network is smooth, you can also directly choose the exe file to download. There is no need to install the zip file again. Cut the decompressed file to yourself. You can select the directory you want. The exe file also needs to be installed manually. Choose according to your personal situation:

If you download the zip file, unzip the file and enter the bin directory to find the datagrip64.exe file. Right-click and send the shortcut to the desktop. If the exe is installed manually, you can manually choose to create a desktop shortcut during the installation process. Manual installation follows the fool-proof installation. That’s it. Next, we double-click the desktop shortcut to enter the following interface, where we choose not to import the configuration:

To activate DataGrip in the pop-up interface, you need to enter your JB account or activation code. If you don't have one, you can directly click [Start trail] to try it out. If you want to use it permanently, you can privately message the blogger :

Before creating the project, we choose to install a Chinese plug-in:

Then enter your own project path to create the project, and then you can start using the datagrip tool officially.

DataGrip usage tutorial

Before using the DataGrip tool, please make sure you have downloaded the database management system you want to use. If you have not downloaded it, you can refer to my previous article: Database Column . Next, we will use the MySQL database as an example to explain:

Next, we click the plus sign on the left, select the data source, and select the MySQL database service in the drop-down box:

Next, we choose to download the corresponding driver in the pop-up box. After the download is completed, the download pop-up box will automatically disappear:

Next, we fill in our username and password in the configuration information interface, and then click Test Connection to test:

Create database

After clicking OK, we right-click on @localhost to create a new schema:

After the following interface appears, we enter the name of the database we want to create, and the creation statement of the database will be displayed below:

Create table structure

Next we can create a table structure for our newly created database. Right-click the database name to create a new table structure.

Enter your relevant information in the pop-up interface:

Right-click the column and click New to add fields to the table:

Fill in the form according to your personal situation:

You can fill in multiple field information. After clicking OK, the table information we just created will appear on the left console:

SQL statement operations

We can use datagrip to operate sql statements, right-click the database and select query console:

We enter the show databases; statement to query all current database names for testing. We can see that our database name mysql_test is queried:

Similarly, if we want to query table information, we can also execute the show tables; statement to query. The table we just created has been queried, as follows:

DataGrip usage tips

The datagrip tool has its own unique features. It has many convenient operations so that developers can quickly and accurately operate database data. The following operations are commonly used in the DataGrip tool:

Quick search : You can quickly locate libraries, tables, and fields through double shift.

Code completion : Datagrip’s code completion capability is the strongest among basically all database management tools. The power of the code prompt function can be seen by querying the database name and table name above, which will not be demonstrated here.

Jump to the data column : jump to the field or table from the SQL statement. For example, if we query from the following standard, ctrl+left mouse button enters the SQL statement of the table, and then clicks the positioning button on the console to locate. The location of the current table is as follows:

Quick filtering and sorting : We can use the where and order by statements that come with the tool to query data.

Ability to operate data : We can operate data just like operating Excel, just modify the information and submit it directly

Then when we query the table, we can modify it directly:

Display annotation information : Annotation information is not displayed by default and we need to set it manually.

DataGrip skinning operation

If you feel that the native datagrip skin is too monotonous, you can install the following plug-in for skin change:

After restarting the editor, select your favorite theme:

If you want to change the theme later, you can also click on the lower right corner to change the theme:

After I changed this theme, do you think it has a bit of a visual effect:

write at the end

The DataGrip tool is a powerful and easy-to-use database development tool that has many advantages:

Supports multiple databases :

DataGrip can connect to and manage multiple types of databases, including MySQL, PostgreSQL, Oracle, SQL Server and other common databases. This makes it easy to use the DataGrip tool for cross-platform database development and management.

Provides rich features :

The DataGrip tool provides a wealth of features, including code auto-completion, syntax highlighting, code navigation, database connection management, version control integration, etc. These functions can greatly improve development efficiency and allow developers to focus more on the business logic itself.

With intelligent prompts and code analysis functions :

The DataGrip tool provides powerful intelligent prompts and code analysis functions, which can help users quickly locate errors and optimize code. This feature can eliminate a large amount of redundant code and improve code quality and execution efficiency.

Cross-platform support :

DataGrip can run on Windows, MacOS and Linux, which allows users of DataGrip tools to freely choose their favorite operating system without having to relearn new database development tools to switch operating systems.

Easy skill :

The DataGrip tool has an intuitive user interface and friendly operation methods, making it easy for users to get started. At the same time, it provides detailed help documentation and examples so that users can master and use the tool more quickly.

The above is a detailed introduction to the DataGrip tool. Friends who like it can try it!

Guess you like

Origin blog.csdn.net/qq_53123067/article/details/135438419