Git Product home page Git Product logo

Comments (3)

artfulrobot avatar artfulrobot commented on July 20, 2024 1

@kndndrj Ah, ok, great, thank you ❤️

So the correct format for MySQL seems to be (for my non-standard 13306 port):

{
  name = "whatever - refers to the connection, not the database",
  type = "mysql",
  ulr = "user:pass@tcp(0.0.0.0:13306)/mydbname"
}

Things that are unusual about the url field compared to other DSNs:

  • there's no mysql:// at the start
  • you need tcp(...) wrapping the address field. I think (untested) you'd need unix(...) for a socket.

The other thing that's noticable - may be a separate issue? - is that once you're 'in', the drawer shows:

(connection name) » structure » all databases

and allows you to toggle-open any database. But then you can't look at any tables in those databases because it says they don't exist in mydbname specified in the connection. It seems odd to show stuff that can't be accessed and it would be cleaner to show the selected/filtered/limited mydbname as selected/opened somehow.

Anyway, thanks, I'm set up now and will continue testing.

from nvim-dbee.

kndndrj avatar kndndrj commented on July 20, 2024

Hey, I'm not sure if url is correct or not, but can you please refer to mysql go driver's readme and check if they use some sort of special naming? https://github.com/go-sql-driver/mysql#dsn-data-source-name

Please try it and let me know if it helped :)

from nvim-dbee.

weirdan avatar weirdan commented on July 20, 2024

url = "user:pass@tcp(0.0.0.0:13306)/mydbname"

This doesn't seem to work anymore. The client now attempts to parse it as an actual URL, and it's not a valid url:

https://github.com/kndndrj/nvim-dbee/blame/09a15121eb26a9845c5a961beb2a17285a5d1eee/dbee/clients/mysql.go#L28

from nvim-dbee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.