First, close
the original process. Different systems have different closing methods. The
current Mac is 10.12, and the closing command is
sudo launchctl unload -w /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
or Execute
mysql.server stop under /usr/local/mysql/support file/.
If the command is not completely shut down, then
ps -ef|grep mysqld
finds the corresponding process number, and directly kills the
authorized folder
chown -R mysql :mysql /usr/local/mysql/data
chmod -R 777 /usr/local/mysql/data
If you encounter The server quit without updating PID file, it is also a permission problem.
Start mysql
sudo ./support-files/mysql.server start
Encountered
2017-03-10T03:44:41.015267Z 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 35 during startup
2017-03-10T03:44:41.015301Z 0 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files
, then the process should not be shut down, so please refer to the above method of shutting down
After the startup is successful, there is a problem with joining the login. You
can start it in the following ways, skip the login, and then change the password
sudo ./support-files/mysql.server start --skip-grant-tables
Remember to FLUSH PRIVILEGES after changing the password;
Summary of problems encountered in upgrading mysql under mac
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326343310&siteId=291194637
Recommended
Ranking