当前位置:网站首页>[notes for personal use] detailed steps for connecting MyEclipse to MySQL database
[notes for personal use] detailed steps for connecting MyEclipse to MySQL database
2022-06-21 06:34:00 【Little witch thousand fish】
First step open Database
open myeclipse And then click window window Click on Open Perspective Menu MyEclipse Database Explorer Enter the figure below
The second step Create connection
Right click in the blank to create a new ( namely new) Or click the shortcut key in the menu bar ( The downward triangle symbol in Figure 2 ) newly build . eject Database Driver See the following figure for the menu
The third step Choose the connection mode
stay Driver template In the option box choice MySql Connector/j Such as , The figure below
Step four Fill in the configuration information
stay Driver name Fill in the name of the linked database ( This can be filled out as you like , It is suggested that it should be related to the name of the project for easy use )
Connection URL Used to fill in the connection to use mysql The address of the database (jdbc:mysql://[<:3306>]/) Can be changed to (jdbc:mysql://localhost:3306/test), among localhost It means to connect to the local database ,3306 Yes means connection mysql The port number of the database ( Different database port numbers are also different ),
User name Fill in the database user name mysql The default is root
Password Fill in the interview mysql The access password you set for the database . Such as , The figure below
Step five Add driver
Click on Add JARs add to myeclipse Connect mysql Database driver file ( The best file to store the driver is an English directory , Determine during the test mysql The database has been opened , Otherwise the test will not succeed ), What is added here is mysql-connector-java-5.1.7-bin edition ( Can search and download online 、) Such as , The figure below
Step six Test whether the data configuration is correct
Click on Test Driver Test whether the configuration is successful , Enter the password to access the database . Such as , The figure below
Step seven Test success
Test connection mysql Database success , Click on Finish Finish creating connection .
Step 8 Connect to database
Right click the connection you created and click Open another connection Input mysql You can see the database table created by the database password .
Reprinted from this article
边栏推荐
猜你喜欢

Unity隐藏目录和隐藏文件

【【毕业季·进击的技术er】------老学长心得分享

DDD Practice Manual (4. aggregate aggregate)

Recursively establish a chained binary tree, complete the traversal of the first, middle and last order and other functions (with source code)

Pycharm的快捷键Button 4 Click是什么?

FPGA - 7 Series FPGA selectio -06- odelay of logic resources

Idea usage record

FPGA - 7系列 FPGA SelectIO -06- 逻辑资源之ODELAY

Module 14 - 15: network application communication test

Backtracking method of graph coloring problem (the most easy to understand)
随机推荐
Does intelligence need a body
如何限制内网网速
WordPress pseudo original tool - update website one click pseudo original publishing software
出现ConcurrentModificationException这个异常报错,怎么处理?
粽子大战 —— 猜猜谁能赢
[MySQL] database multi table operation customs clearance tutorial (foreign key constraint, multi table joint query)
Leetcode 75 - three implementation methods of color classification [medium]
Pyshark tutorial
Module 14 - 15: network application communication test
Pycharm设置项目的默认解释器
笔记 How Powerful are Spectral Graph Neural Networks
docker 安装mysql
FPGA - 7 Series FPGA selectio -02- introduction to source language
端午节-简单侧边导航栏
Some details of BN
Record the problem that Navicat connection PostgreSQL cannot display the corresponding table
【笔记自用】myeclipse连接MySQL数据库详细步骤
高考那些事
scikit-learn中的Scaler
IP - 射频数据转换器 -04- API使用指南 - 系统设置相关函数