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.