mac mysql: command not found
mac mysql: command not found
mac上裝上mysql後,在終端裡輸入mysql -uroot -ppassword後回車,總是提示-bash: mysqladmin: command not found,如下圖:
解決方法很簡單:
alias mysql /usr/local/mysql/bin/mysql
alias mysqladmin /usr/local/mysql/bin/mysqladmin
bash下:
alias mysql=/usr/local/mysql/bin/mysql alias mysqladmin=/usr/local/mysql/bin/mysqladmin
那麼接著就可以在終端上使用指令了,如設定密碼
mysqladmin -u root -p password
內容均為作者獨立觀點,不代表八零IT人立場,如涉及侵權,請及時告知。
相關文章
- Mac -bash: mysql: command not foundMacMySql
- centos 7 -bash: mysql: command not foundCentOSMySql
- -bash: id: command not found -bash: tty: command not found
- 解決bash: mysql: command not found的問題MySql
- nodemon: command not found
- pip: command not found
- Mac之telnet報錯-bash: telnet: command not foundMac
- Mac終端出現 brew command not found 解決Mac
- zsh:command not found: xxx
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- sudo: apt-get: command not foundapt-get
- 【Linux】git note -v command not foundLinuxGit
- bug solved | zsh: command not found: mongo (Mac M1/M2 )GoMac
- 【linux報錯】-bash: xhost: command not foundLinux
- bash: lspci: command not found解決方法
- 踩坑記錄:vue-cli-service: command not found(Mac環境下)VueMac
- -bash: XXX: command not found解決辦法
- python virtualenv報錯-bash: virtualenv: command not foundPython
- bash: ssh-copy-id: command not found...
- zsh: command not found: bee bee工具安裝
- zabbix_get :command not found 解決辦法
- Linux提示crontab command not found的解決方法Linux
- “command-not-found has crashed” 解決辦法 (*unsolved)
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- 解決shell指令碼錯誤$’r’ command not found指令碼
- 解決 biolinux-conda command not found 2018-05-04Linux
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error
- CentOS 7 命令 lsb_release: command not found 解決方案CentOS
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- test.sh: line 3: $‘\r‘: command not found 或者 vim去掉^M字元字元
- mysql RSA private key file not foundMySql
- CentOS 已安裝virtualenv, 但還是報錯誤 bash: virtualenv: command not foundCentOS
- 阿里雲伺服器Centos映象解決方案apt-get: command not found阿里伺服器CentOSapt-get
- MySQL 5.7 Command Line Client 閃屏退出MySqlclient
- mysql-python安裝時Environment Error: mysql_config not foundMySqlPythonError
- 安裝mysqlclient報OSError: mysql_config not foundMySqlclientError
- mysql中出現Unit mysql.service could not be found 的解決方法MySql