sudo mysql.server stop
mysql 서버 종료
mac setting - MySQL에서 종료해도 된다.
sudo mysql.server start --skip-grant-tables
sudo mysql -u root
mysql 접속
sudo update mysql.user set authentication_string=null where user='root';
비밀번호 제거
flush privileges;
exit;
sudo mysql.server restart
재시작
mysql -u root
alter user 'root'@'localhost' identified with caching_sha2_password by '변경할 비밀번호';
root 비밀번호 설정