解决bash: mysql: command not found 的方法
来源:互联网 发布:银联卡网络支付接口 编辑:程序博客网 时间:2024/05/16 04:45
root@DB-02 ~]# mysql -u root
-bash: mysql: command not found
原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件。
首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径是:/usr/local/mysql/bin/mysql,我们则可以这样执行命令:
# sudo ln -s /usr/local/mysql/bin/mysql /usr/bin
0 0
- 解决bash: mysql: command not found 的方法
- 解决bash: mysql: command not found 的方法
- 解决bash: mysql: command not found 的方法
- 解决bash: mysql: command not found 的方法
- 解决bash: mysql: command not found 的方法
- 解决bash: mysql: command not found 的方法
- 解决bash: mysql: command not found 的方法
- 解决bash: mysql: command not found 的方法
- 解决bash: mysql: command not found... 的方法
- Linux解决bash: mysql: command not found 的方法
- MAC 解决bash: mysql: command not found 的方法
- bash: mysql: command not found 解决
- bash: mysql: command not found
- -bash: mysql: command not found
- bash: mysql: command not found
- 解决服务器phpmyadmin -bash: mysql: command not found
- mac 下解决 -bash: mysql: command not found
- 解决 -bash command not find 的方法
- apache 代理tomcat 和指定503页面
- 解决win8.1下的msi文件安装报2503,2502问题
- Esper——事件类型
- MySQL锁机制及优化
- Expires
- 解决bash: mysql: command not found 的方法
- 软件工程学习日记(3)----需求分析
- 构造函数和this
- 轮播图
- Java总结---线程(三)
- 使用commons-configuration对.xml和.propertias的读写
- Codevs1183 泥泞的道路
- 作为码农,我们为什么要写作
- 有没有设备可以测试电池的容量