vscode-mysql icon indicating copy to clipboard operation
vscode-mysql copied to clipboard

Feature Request: Rename connections

Open CuriousFurBytes opened this issue 8 years ago • 6 comments

Right now, the plugin only displays the hosts. It would be nice if we could give the connections a name, to be easier to identify.

CuriousFurBytes avatar Jan 08 '18 15:01 CuriousFurBytes

This is a big one for me. I have a few different instances (different versions) of MySql running on localhost, so I'd like to be able to give them a descriptive name instead of them all being shown as "localhost".

jrnail23 avatar Mar 22 '18 21:03 jrnail23

This is quite essential when having many instances running on localhost. For now the workaround is adding entries in the hosts file pointing to localhost and using this entries for adding connections. For example in hosts file: 127.0.0.1 first-database 127.0.0.1 second-database 127.0.0.1 third-database

That way you'd get something like: image

Of course you can give more meaningful names

corte avatar Jun 07 '18 14:06 corte

This feature would make this extension so much better for people like me who use ssh tunnels to access multiple MySQL servers from localhost port forwarding. Right now there is no alias or any indicator:

image

jatinkrmalik avatar Sep 12 '18 13:09 jatinkrmalik

Yes, Please add option for rename the database.

noufalbabu avatar Oct 10 '18 06:10 noufalbabu

I've started working on this feature as I felt the need myself. I've made some code changes also. Request if anyone can guide me about how I can compile and execute the code to verify if changes are working fine? Reason, I'm for the first time working on any of VsCode plugins

ismusidhu avatar Oct 08 '19 10:10 ismusidhu

Ok. I was able to execute and test locally. npm test --silent and npm run test both passes. Any guess/hint on what is causing build to fail?

ismusidhu avatar Oct 08 '19 11:10 ismusidhu