Home >Database >Mysql Tutorial >Detailed steps for myeclipse to connect to MySQL database
For students who have just used myeclipse for Java development, the database connection is very important. In class, the teacher will also finish speaking very quickly. Before he recovers, the class is over. I have a deep understanding of that feeling, especially the English version. I wanted to ask but didn't dare. Because I have experienced it myself, I will share here the detailed steps of connecting myeclipse to mysql database.
The first step is to open Database
##Open myeclipse and click on the window. Click MyEclipse Database Explorer in the Open Perspective menu to enter the picture below The second step is to create a connection Right-click the mouse in the blank space to create a new one (i.e. new) or click the shortcut key in the menu bar (the downward triangle symbol in Figure 2) to create a new one . The Database Driver menu pops up, as shown in the figure belowThe third step is to select the connection method Select MySql Connector/j in the Driver template option box, as shown in the figure belowThe fourth step is to fill in the configuration information Fill in the name of the linked database in Driver name (this can be filled in according to your own preferences, the best recommendation is It is related to the name of the project and is easy to find during use) Connection URL is used to fill in the address of the mysql database to be connected (jdbc:mysql://Step 7 Test successful
The test connection to the mysql database is successful, click Finish to complete the connection creation.
Step 8 Connect to the database
Right-click the connection you created and click Open another connection Enter the mysql database password to see the created database table. As shown below
The above is the detailed content of Detailed steps for myeclipse to connect to MySQL database. For more information, please follow other related articles on the PHP Chinese website!