该视频仅会员有权观看
立即开通课程「Node 框架 Express 实践」权限。
- MySQL installation includes a command-line tool for database management.
- Initially, running
mysql in the terminal may fail due to the system not finding the command.
- The MySQL command is located at
/usr/local/mysql/bin.
- To run MySQL directly, you must add its directory to the PATH environment variable in the terminal.
- If using Zsh shell, edit the
.zprofile in the user's home directory to include the MySQL path.
- After saving the changes to
.zprofile, restart the terminal or run source ~/.zprofile to apply the configuration.
- Once configured, you can execute the
mysql command directly in the terminal.