jide / clamp

Command Line Apache MySQL PHP
http://jide.github.io/clamp
GNU General Public License v2.0
79 stars 9 forks source link

Issues running clamp after homebrew update #45

Open dominicpedro opened 5 years ago

dominicpedro commented 5 years ago

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

rqelibari commented 5 years ago

Hi @dominicpedro,

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

jide commented 5 years ago

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 mariadb@10.0
clamp config write

And replace $(brew --prefix mariadb) with $(brew --prefix mariadb@10.0) in clamp.json.

dominicpedro commented 5 years ago

Thanks for the update. Will try your workaround

Dom On 29 Oct 2019, 00:48 +0200, Jidé notifications@github.com, 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 mariadb@10.0 clamp config write And replace $(brew --prefix mariadb) with $(brew --prefix mariadb@10.0) in clamp.json. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.