解决Mac下MySQL登录问题

sudo /usr/local/mysql/support-files/mysql.server stop

sudo mysqld_safe --skip-grant-tables

mysql-u root

mysql>UPDATEmysql.userSETauthentication_string=PASSWORD('password')WHEREUser='root';

mysql > FLUSH PRIVILEGES;

原文地址:https://www.cnblogs.com/ld-swust/p/5823897.html