Install mysql on mac and macmysql
Method 1: If you have installed homebrew, you can directly install it through homebrew. There are tutorials online.
Method 2: Download the mysql Installation File dmg on the official website and double-click it,
1: Click the first pkg to bring up the installation step, and then click next. Finally, the tips after installation is complete. If there is a problem in the middle, open readme.txt for reading.
2: The third pkg is used to set whether to start mysql at startup. If double-click is used, next is installed successfully. If you want to cancel the startup of mysql, open readme.txt.
3: The Second file is used to manually start mysql.
4: After installation, you can view Related Files: switch to the root permission by running the sudo-I command. Read readme.txt to find the corresponding directory.
5: When you run the mysql command, the command not found prompt is displayed. You need to map the mysql command to usr/bin.
The command operation is as follows:
MacBook-Pro:/ root# ln -s /usr/local/mysql/bin/mysql /usr/bin
Then execute mysql and the prompt is as follows:
Then the installation is successful. You can perform operations related to creating databases and SQL commands.
Install an mamp pro Kit.
How to install mysql on mac
I went there and went directly to the next dmg on the official website. It is best not to go to version 10.5 for version 10.6 x64.