judahmeek@Judahs-MBP dummy % mysql
ERROR 1045 (28000): Access denied for user 'judahmeek'@'localhost' (using password: NO)
Using Homebrew's latest mysql
package on MacOS v13.1 with default terminal
.
I'm a rather junior developer so I haven't made many unexpected system changes.
For example, here's my .zshrc
:
judahmeek@Judahs-MBP dummy % cat ~/.zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
According to my search results, root
should be the default username.
Does anyone have a clue why it's judahmeek
instead?
Edit:
per @Barmar's suggestion, I ran the following:
judahmeek@Judahs-MacBook-Pro memseed % cat /etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf
cat: /etc/my.cnf: No such file or directory
cat: /etc/mysql/my.cnf: No such file or directory
# Default Homebrew MySQL server config
[mysqld]
# Only allow connections from localhost
bind-address = 127.0.0.1
cat: /Users/judahmeek/.my.cnf: No such file or directory
Also according to mysql --help
,
Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
----------------------------------------- --------------------------------
auto-rehash TRUE
...-snip-...
user (No default value)
...-snip-...