解决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;

posted @ 2016-08-30 22:29  羊皮纸月亮  阅读(142)  评论(0编辑  收藏  举报