命令行中输入

open .bash_profile

然后将

alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin

追加到最后面,如果文件不存在,自己创建一个就可以了

然后保存

然后输入

source .bash_profile

最后就能使用mysql来使用shell来使用控制台命令了

 

相关文章:

  • 2022-12-23
  • 2022-02-19
  • 2021-11-01
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-11-29
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案