clamp icon indicating copy to clipboard operation
clamp copied to clipboard

Issues running clamp after homebrew update

Open dominicpedro opened this issue 5 years ago • 3 comments

Since homebew updated yesterday, I am now getting an auth error when creating a new clamp install

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

I believe mariadb now prevents running as root. Not sure if anyone else is getting this issue.

Any help would be greatly appreciated

dominicpedro avatar Sep 28 '19 05:09 dominicpedro

Hi @dominicpedro,

can you tell a bit more about your system? What version of macOS or MacOS X are you running clamp on?

rqelibari avatar Oct 03 '19 23:10 rqelibari

Yeah, it seems Mariadb has changed a few things about root user. It seems it could work with passing -u root to the mysqld command, but another error is thrown: unknown variable 'defaults-file=/dev/null'.

As a workaround, you can install and use an older version of mariadb, and edit the clamp config file after having erased the .clamp folder :

rm -rf .clamp
brew install [email protected]
clamp config write

And replace $(brew --prefix mariadb) with $(brew --prefix [email protected]) in clamp.json.

jide avatar Oct 28 '19 22:10 jide

Thanks for the update. Will try your workaround

Dom On 29 Oct 2019, 00:48 +0200, Jidé [email protected], wrote:

Yeah, it seems Mariadb has changed a few things about root user. It seems it could work with passing -u root to the mysqld command, but another error is thrown: unknown variable 'defaults-file=/dev/null'. As a workaround, you can install and use an older version of mariadb, and edit the clamp config file after having erased the .clamp folder : rm -rf .clamp brew install [email protected] clamp config write And replace $(brew --prefix mariadb) with $(brew --prefix [email protected]) in clamp.json. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

dominicpedro avatar Oct 29 '19 06:10 dominicpedro