1.系统偏好设置-> mysql -> stop mysql 2.cd /usr/local/mysql/bin/ 3. sudo su 4../mysqld_safe --skip-grant-tables & 5.root root