1. Unable to start mysql service
Question: Click Start MySQL Server did not respond
deal with:
Open Input Terminal: sudo chown -R _mysql: wheel / usr / local / mysql / data
Restart it
2. Modify the MySQL root password
Problem: long time did not forget to use a password, or you have just installed MySQL does not know the root password is valid
Process: step1: shut down mysql service: Apple -> System Preferences -> lowermost point mysql mysql close the pop-up pages service (click stop mysql server)
step2: entering an input terminal: cd / usr / local / mysql / bin /
Enter the administrator login privileges sudo su
After the command to enter input verification prohibit mysql ./mysqld_safe --skip-grant-tables &
Mysql will automatically restart after the carriage return (status preference settings will become mysql running)
step3: Enter the command ./mysql
Enter, enter the command FLUSH PRIVILEGES;
Enter, enter the command SET PASSWORD FOR 'root' @ 'localhost' = PASSWORD ( 'your new password');