1. MySQL mysql-8.0.18-macos10.14-x86_64.dmg
Download directly from the official website, double-click to install, and select Next.
After a successful installation, MySQL is enabled by default, and you can execute mysql directly in the terminal.
2. MySQL WorkBench mysql-workbench-community-8.0.18-macos-x86_64.dmg
It should be noted that the versions of MySQL and MySQL WorkBench must be the same, otherwise Workbench cannot run normally even if the installation is successful. (Practical lessons)
MySQL WorkBench can be downloaded directly from the official website, and there is a version selection on the web page.