It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
3 years agoHow do I pass command-line options to MySQL?
I am using the 1Password CLI version 2.12.0.
When using the https://developer.1password.com/docs/cli/shell-plugins/mysql, 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:
shell
❯ 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
No Replies