Start directly, and the errors that may occur in each step are described in the process.
1. Install the XAMPP, then open the terminal, enter:
Successfully entered, rub, you have good luck, do not look at the back.
2. If you are prompted to command not found, continue to enter execution at the terminal:
Ln-s/applications/xampp/bin/mysql/usr/bin
Note: USR does not write to user!
If successful, go back to step 1th and you can enter!
3, if not successful, return operation not permitted, the description does not have permissions, this time to the bin under the MySQL permissions modified into read and write (self-search how to modify)
4, after the change, again to perform the 2nd step, found still not, with the root user to perform the 2nd step, namely:
sudo ln-s/applications/xampp/bin/mysql/usr/bin
5, if still not, why? It took a long time to find out why, and finally found it, because Mac OS uses rootlees, which can be understood as the kernel protection of a higher level system,
The/usr/bin operation is locked and can only be manipulated with an Apple certificate.
So what do we do?
6, Method: Reboot the computer, hold down
Go to the recovery partition, and then find the terminal boot run on the utility bar.
7, input
Turn off protection
And then enter
Reboot the computer or manually click Reboot.
8, restart the computer, open the terminal, the implementation of the 4th Step command, you can put the absolute position of this tool into the/usr/bin
9, this time in the implementation of the 1th step can normally open.
10. Finally, for security reasons, let's start the rootless, with step 6th, step 7th, execute the command
Restart the computer and OK.
11, every time restart the computer, remember to first XAMPP MySQL service startup, or it will be an error
Can ' t connect to the local MySQL server ...
12. The end!
The above mentioned is small set to everyone introduced on the Mac any use terminal to open xampp with the MySQL, I hope to help.