linux/mac 环境查看mysql版本时出现 :-bash: mysql: command not found

  • 将mysql环境变量添加进/usr/bin

ln -s /usr/local/mysql/bin/mysql /usr/bin

Buy me a cup of coffee :)