I can not set a different password for valet to use - I looked into .valet but did not find any hint about where valet might be looking for passwords. Please add some info in the docs about how to change the used password.
Please note: I know how to change the mysql / mariadb root password. I do not know where to set the mysql password valet uses.
Thank you very much for your attention!
Right now we expect it to always be root/root, but i'm open to creating a config value for it 馃憣
I do not know where to set the mysql password valet uses.
Perhaps in /usr/local/etc/my.cnf?
@srikat it's overwritten every time you valet install. So we need to make it configurable
And the user/password are hardcoded into valet+ right now
Question: why does valet need to handle the password at all? Wouldn麓t it be easier to not touch the password at all and leave all things at the usual places (like $HOME/my.conf)? Currnetly I am not 100% clear about why valet need the password.
For all the valet db subcommands.
I also support making the db password changes configurable. I have been using my DB for years and changing it to root/root will mean I have to change some configs in various dev apps.
+1 for making this configurable
Any update on this?
@wowcut @ashtonlance I intend to look into this feature once valet-plus is a bit more stable. Currently the PECL management, permissions issues and PHP switch have my priority. You've not been forgotten!
+1 for configurable db credentials. I tried Valet Plus and liked it, but this was the sole issue that made me have to uninstall it. Hoping I can check back here to see if this happens so I can give it another spin.
Changing the password added in 30fc74655cc2f94a68f8d48d436e528b58cefcd0.
Syntax will be valet db pwd <old> <new>
Available in 1.0.21
@mischabraam Is it possible to remove the db user password? If so, what's the command?
I just tried updating the password via valet db pwd <old> <new>, and the update failed with this message:

Still looking for a way to remove the root user password, anyone have any ideas?
Most helpful comment
Available in
1.0.21