1> in the main interface, click on the right side of the database, click on the +, then the data Source Select Databases 2> fill in database name, enter User and Password, click Test Connection 3&G T This means that the database connection is successful 4> this will see a successful connection to the database. Many people think that configuring database is to have a GUI to manage databases, but this is not the most important feature of IntelliJ idea. There are many GUI tools for databases, and IntelliJ idea's database has no obvious advantage. The biggest feature of IntelliJ idea's Database is that for Java Web projects, often used ORM frameworks, such as Hibernate, Mybatis, have good support, such as the configuration of database, IntelliJ idea will be self- To identify the relationship between the domain object and the data table, you can generate the domain object directly from the database data table, and so on. IntelliJ idea Configuration MySQL Database
IntelliJ idea Configuration MySQL database detailed