pycharm连接mysql数据库

发布时间 2023-04-14 15:08:51作者: 捷后愚生

在网上看到可以使用pycharm连接mysql数据库,结果我在菜单栏的 View --> Tool Windows 没有找到Database。
别人的:
image

我的:
pycharm版本如下
image

image


经过了解,我们可以自己安装Database插件。
1、打开file -> setting ->Plugins
image

2、点开Plugins后,在搜索框中输入data找到Database Navigator进行安装
image

image

ps:安装需要一定的时间,安装后需要重启pycharm。

3、使用Database Navigator

重启pycharm后,会在最上方的选项出现DB Navigator。
image

4、连接数据库
image

image

image

image

在database browser可以看到所连接的数据库
image


参考:
https://blog.csdn.net/qiqi1220/article/details/127725795
https://zhuanlan.zhihu.com/p/613399803