Can't connect .sql file to a database
已回答
I'm unable to connect a .sql file to a database. It shows (in the top right) the database type and a <data source> dropdown that is empty. I have servers and databases created and working in the Database pane on the right: they test fine during creation, have active sessions (the green dot), and have console tabs where I can execute queries. This used to work just fine, but somewhere over the past couple of months (and some upgrades, that I didn't really keep track of), it stopped working.
I'm using IDEA 2025.3.3 and the bundled Database Tool and SQL plugin.
请先登录再写评论。
Under the add button ("+" in the Database tab), there was a Problems section in the bottom-left. I clicked on that, and despite my connections working fine in consoles, there was a Download Driver line in the problem list. I clicked that, approved it dropping my connection, and voila, the <data source> dropdown in .sql files has entries in it again. Problem solved; not sure what went wrong there.
Hello Djaquay
If this happened after the plugin or IDE update, it's possible the database driver wasn't updated, or the driver config was reset, so you needed to download it again.
Have a nice day!