Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql password warning instead of table names #10

Closed
rakshans1 opened this issue Apr 20, 2020 · 6 comments
Closed

Mysql password warning instead of table names #10

rakshans1 opened this issue Apr 20, 2020 · 6 comments

Comments

@rakshans1
Copy link

image

@kristijanhusak
Copy link
Owner

Can you give me the format of database url that you are using?
Also, give me some system info, OS, Vim/Neovim version, etc.

@rakshans1
Copy link
Author

url: mysql://user:password@domain.com
NVIM: v0.5.0-nightly-1-gdc0e534
OS: Ubuntu 18.04.4 LTS x86_64
Shell: zsh 5.4.2

@kristijanhusak
Copy link
Owner

Since connections are per db, and your url doesn't contain database name, I suggest to add a db name to the url like this:

mysql://user:password@domain.com/db_name

Let me know if that fixes it completely, since i'm not sure about the warning.

@rakshans1
Copy link
Author

Worked after adding database name at end

@rakshans1
Copy link
Author

Can I use my own .sql file and run query by selecting a line

@kristijanhusak
Copy link
Owner

You can assign your sql file to a certain database as a buffer with :DBUIFindBuffer, which will set b:db, that you can use directly with dadbod (by selecting lines and executing :DB on them). Just make sure to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants