Error: No configured target data sources

Answered

Hey guys! I just ran into this error. I was able to query stuff just fine before restarting my computer. But now when DataGrip came back up it's throwing this popup every time i try to run the query again. Any thoughts on how to fix it?

0
5 comments

How do you run the query? Do you use the green play button in the gutter of the console or the run button at the top right of the DataGrip window? 

 

0

Konstantin Annikov i just discovered that it works when clicking on the bottom left and gives that error when clicking on the top right. Why is that?

0

Because on the top right, you may have a data source that does not exist listed in the Run Configuration.

Top right button is used to start the run configuration (doc), not the file currently focused in the editor.  

1

I see. Is there a reason they are different? Should they be the same?

0

Yes, run configurations are used to run more complex scripts, or aim several databases. 

Run configurations could also be used to run other types of programs like Python, or Java

0

Please sign in to leave a comment.