kndndrj / nvim-dbee

Interactive database client for neovim
GNU General Public License v3.0
616 stars 39 forks source link

MySQL DSN with a port #32

Closed weirdan closed 10 months ago

weirdan commented 11 months ago

I'm trying to connect to a MySQL server available on localhost on non-standard port.

I've tried the following DSNs (all fail):

This is similar to the #14, but the solution posted there no longer works due to URL parsing check added since it was posted: https://github.com/kndndrj/nvim-dbee/commit/d461eb19031ee2a88c896d372bd110c30f901b93

kndndrj commented 10 months ago

@weirdan Thanks for postinv the issue. I think simplified the url check in mysql driver in a recent PR. Apparently I missed a few cases. I'll look into this issue as soon as I have some time, meanwhile you can check if an older commit works for you.

weirdan commented 10 months ago

For future reference, MySQL DSN, as implemented here, does not include 'protocol' prefix. A working example is user_name:pass_word@tcp(127.0.0.1:3308)/database_name.