Wednesday, February 25, 2015

Re: dbext without a password

On Sunday, 22 February, 2015 at 17:42:55 GMT, David Fishburn wrote:
>Outside of dbext, can you concoct a mysql command line that does what you
>want without using a password. That usually helps when coming up with the
>connection profile that will result in the same command line.
>
>You can also see the dbext command line by running:
>:DBSetOption display_cmd_line=1

With that DBSetOption, I can see that the command dbext is using is:

mysql -u root -D test -t < /tmp/vplBhqM/dbext.sql

I have previously defined some other mysql user and password in ~/.my.cnf. With the above command line, mysql, since there is no password parameter given, [I'm assuming] takes the password from ~/.my.cnf, which is not necessarily the password of the root user. I think this is a failing of mysql rather than dbext. A command that does is:

mysql -u root --password='' -D test -t < /tmp/vplBhqM/dbext.sql

Note that -p doesn't accept a blank password (it'll prompt), but --password does.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: