How do I pass command-line options to MySQL?

natevancouver
natevancouver
Community Member
edited December 2022 in CLI

I am using the 1Password CLI version 2.12.0.

When using the MySQL integration, I can run the mysql command-line utility and connect to my database.

However, if I try to add any command-line options it fails:

❯ mysql --no-auto-rehash
mysql: [ERROR] unknown variable 'defaults-file=/var/folders/jf/<redacted>/T/1PasswordShellPlugins-1750107158/my.cnf'.

I would really like to add the -A or --no-auto-rehash option because, with larger databases, the mysql CLI takes a long time to start unless that option is used.

Another issue is that the default 1Password flow for adding a new database item uses the field name server, instead of host, which is required by the plugin.


1Password Version: 8.9.11
Extension Version: Not Provided
OS Version: macOS 13.1
Browser:_ Not Provided

This discussion has been closed.