How to change 'Ctrl+Enter' SQL query execution in PhpStorm to a different database?

I had already associated it with a MariaDB server at localhost. I would now like to switch to a remote server. I've already added it in the Database Tool Window.


How do I make SQL in existing files go through the remote MariaDB server?

1 comment
Comment actions Permalink

I think I answered my own question:

On PHP files with an associated database console, you will see a Database toolbar, just below the tabs for each (PHP) file. On the right there is a pull-down menu, where you can select a database and then click it's console. Then the queries will execute on the newly selected database. 


Please sign in to leave a comment.