解决bash: mysql: command not found... 的方法
来源:互联网 发布:java反射获取对象属性 编辑:程序博客网 时间:2024/06/05 08:32
[root@localhost ~]# mysql -uroot -p
bash: mysql: command not found...
原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件。
首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径是:/home/software/mysql/mysql5.7/bin/,我们则可以这样执行命令:[root@localhost bin]# ln -s /home/software/mysql/mysql5.7/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 的方法
- LeetCode : Sqrt(x)
- poj2955(区间dp)
- import matplotlib.pyplot 错误
- C++产生随机数
- Java开发中的23种设计模式详解(转)
- 解决bash: mysql: command not found... 的方法
- 车联网问题研究中如何将地图数据可视化显示出来
- 浏览器限制ajax跨域请求问题------SSM解决方案
- CSS-溢出的处理
- 1104. Sum of Number Segments 解析
- 【杂谈】为什么你的项目又失败了
- 折现分割平面(hdu)
- 黑科技!科学家在DNA储存的路上一去不返
- 一招去除迅雷客户端首页视频 斩掉流氓特性 回归下载本质