Environment
- MacOS Ventura 13.6.1
Steps
Open Terminal and enter the command
1
vi ~/.zshrc
Add the following contents inside and save
1
export PATH=${PATH}:/usr/local/mysql/bin/
Source the
.zshrc
file to take effect1
source ~/.zshrc
Validate and login to mysql
1
2mysql --version
mysql -u userName -p
References
About this Post
This post is written by Andy, licensed under CC BY-NC 4.0.