IDEA如何远程连接mySQL呢?

IDEA如何远程连接mySQL呢?

1.点击View->ToolWindows->Database
IDEA如何远程连接mySQL呢?
2.点击±>DataSource->MySQL
IDEA如何远程连接mySQL呢?
3.在linux服务器端,输入hostname,并在Host输入对应的
随后填入user,和password
并点击Driver处,选择对应的驱动
IDEA如何远程连接mySQL呢?
4.点击+号 -->Custom JARS
在Maven库里选择mysql对应的驱动包,
我的mysql是8版本,因此我选择8版本的驱动包
8系列的均可以

IDEA如何远程连接mySQL呢?
IDEA如何远程连接mySQL呢?
IDEA如何远程连接mySQL呢?
5.成功连接,选择All schemas
IDEA如何远程连接mySQL呢?
6.选择如下的框框,打开新的窗口,即可以输入sql语句
IDEA如何远程连接mySQL呢?