1.数据库连接好后回到idea界面就会看到下图这样的界面
2.选中连接好的数据库,右击New–>Query Console打开数据库控制台
3.编写sql语句后选中所有sql语句并执行
4.下面就是运行成功的提示,如果有红色说明有问题
5.在schemas下面找到对应的数据库,就可以看到创建好的表啦
07-17
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-18
8494
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-24
2390
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-07