Comments (5)
I hope you didnt spent too much time racking your brain on this one. I was able to finally get it working by changing my connection string to this format:
dbee.setup({
lazy = true,
connections = {
{
name = "examplemysql",
type = "mysql",
url = "root:password@(localhost:3306)/db1",
},
},
})
Thanks again for your help!
from nvim-dbee.
Hey @napisani, thanks for trying out the plugin.
I probably won't be able to check anything with my pc thia week, but nonetheless, lets try some things:
I see you aren't calling the setup function from packer (e.g. you aren't lazy loading the plugin) For some reason nvim has some trouble running go commands on startup. Try putting lazy = true
in your config, so the setup looks like this:
dbee.setup({
lazy = true,
connections = {
{
name = "examplemysql",
type = "mysql",
url = "mysql://root:redacted@localhost:3306/db1",
},
}
})
Please let me know if it works!
from nvim-dbee.
Thank you, I think I'm one step closer now.
Although now I'm running to this error after running the following command
Cmd:
lua require("dbee").execute("select * from person")
Error:
connection with id examplemysqlmysql not registered
Sorry to be a pain, but I appreciate your help
from nvim-dbee.
Hey, can you try that again and then run :mes
and paste the output here?
Also, can you paste the contents of ~/.cache/nvim/dbee/dbee.log
?
It would be helpful to have some sort of logs
P.S. don't worry I value this kind of feedback :D
from nvim-dbee.
Sure thing, tried it again, followed by the :mes
command. However there were no messages to be found in the messages panel
here is what the dbee.log file contained after doing those two commands:
~ ❯ cat ~/.cache/nvim/dbee/dbee.log
2023/05/15 11:59:50 [DebugLevel]: calling Dbee_register_connection
2023/05/15 11:59:50 [ErrorLevel]: Unable to connect to database: default addr for network 'localhost:3306' unknown
2023/05/15 11:59:50 [DebugLevel]: calling Dbee_set_results_buf
2023/05/15 11:59:50 [DebugLevel]: Dbee_set_results_buf returned successfully
2023/05/15 11:59:50 [DebugLevel]: calling Dbee_execute
2023/05/15 11:59:50 [ErrorLevel]: connection with id examplemysqlmysql not registered
from nvim-dbee.
Related Issues (20)
- `QuitPre` callback breaks `:qa!`
- [QUESTION] How to query MySQL table instead of the whole server?
- [Performance] Disable automatic database drawer refresh HOT 1
- Registering resource fails when running the Dbee command from go installation HOT 1
- The output window should not combine the results of multiple queries
- [BUG] When closing dbee window, previous tab is changed to empty buffer HOT 3
- [Feature Request] Run query under cursor HOT 5
- Simple Question: How to Disable Automatic Minimization of Query Output in MySQL? HOT 1
- Can't save (big) result to csv file (cr.Rows cache flushing timeout exceeded: context deadline exceeded)
- Error on connection: Invalid channel
- Support duckdb v1.0.0
- Error for postgres: Mux.GetAdapters: no driver registered for provided type alias HOT 1
- Errors on windows
- Add your YouTube video intro to the README HOT 1
- Open UI over a file instead of a note HOT 1
- [Question] SSL Connections HOT 1
- Add mappings help on all panes
- Tracking link in README HOT 1
- Edit value in the Results HOT 1
- [Question] Support for functions (iTvF, MSTVF, scalar) and procedures for sqlserver
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-dbee.