当MySQL’出现Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the sidebar.(错误代码:1046。未选中数据库通过在侧边栏的SCHEMAS列表中双击其名称选择要使用的默认DB)错误时
主要的原因是没有指定数据库,对于我来说,只需要MySQL语句中加上use 数据库名即可或者选中左侧列表中的数据库名即可
03-07
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-10
2168
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-11
3万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-10
2万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)