your welcome
-
When you install NVM using Homebrew, you still need to add the following lines to your shell configuration file (.bashrc, .zshrc, etc.)
export NVM_DIR="$HOME/.nvm" . "/usr/local/opt/nvm/nvm.sh"If you are using the Bash shell, open the ~/.bashrc file in your favorite text editor, and add the following lines at the end of the file:
export NVM_DIR="$HOME/.nvm" . "/usr/local/opt/nvm/nvm.sh"If you are using the Zsh shell, open the ~/.zshrc file in your favorite text editor, and add the following lines at the end of the file:
export NVM_DIR="$HOME/.nvm" . "/usr/local/opt/nvm/nvm.sh"After adding the lines to the appropriate file, save it and close the editor. Then, restart your terminal or run the source command to load the changes:
source ~/.bashrc source ~/.zshrc -
MacOS Version Command macOS 12 (Monterey and above) sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder macOS 11 (Big Sur) sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder macOS 10.15 (Catalina) sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder macOS 10.14 (Mojave) sudo killall -HUP mDNSResponder macOS 10.13 (High Sierra) sudo killall -HUP mDNSResponder macOS 10.12 (Sierra) sudo killall -HUP mDNSResponder OS X 10.11 (El Capitan) sudo killall -HUP mDNSResponder OS X 10.10 (Yosemite) sudo discoveryutil udnsflushcaches OS X 10.9 (Mavericks) sudo killall -HUP mDNSResponder OS X 10.8 (Mountain Lion) sudo killall -HUP mDNSResponder Mac OS X 10.7 (Lion) sudo killall -HUP mDNSResponder Mac OS X 10.6 (Snow Leopard) sudo dscacheutil -flushcache Mac OS X 10.5 (Leopard) sudo lookupd -flushcache Mac OS X 10.4 (Tiger) lookupd -flushcache
-
ERROR 1524 (HY000): Plugin 'mysql_native_(Password)' is not loaded
I wasn't prompted to set a root password during the installation and so whenever I tried to use mysql via the mysql -u root -p command. I got this error => Access denied for user 'root'@'localhost'.
So I searched stack overflow and found an answer that involved setting the authentication plugin to mysql_native_password. the query looked something like this...
UPDATE user SET plugin="mysql_native_password";
However, for some reason I typed the command manually instead of copying it and I seem to have written mysql-native-password instead of mysql_native_password (stupid me!!!)now I tried to access the mysql shell in various ways but I always get the following error!
ERROR 1524 (HY000): Plugin 'mysql-native-password' is not loaded
Tried with safe mode : sudo mysqld_safe --skip-grant-tables &
also happens to be the same problem ,Screenshot 2021-03-07 at 1.04.51 PM.png