请帮我解决这个问题
当我尝试使用netbeans连接mysql数据库时,显示以下错误
Cannot establish a connection to
jdbc:mysql://localhost:3306/netbeanstest
usingcom.mysql.jdbc.Driver
(Unknown database)
我在stackoverflow中搜索了解决方案,但我的问题仍然存在。
我检查了我的 jdbc 驱动程序、密码、用户名,一切都正确。
检查数据库的权限以确认用户名和密码。
当我连接内置数据库如'mysql'
、'information schema'
时,连接成功。
请帮我解决问题。
最佳答案
在您的网址中,您指定了:jdbc:mysql://localhost:3306/netbeanstest
您的数据库有“netbeanstest”架构吗?如果没有,则创建 netbeanstest 架构并尝试连接
关于mysql - 在netbeans中使用jdbc驱动连接新创建的mysql数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32068535/