解决bash: mysql: command not found 的方法
来源:互联网 发布:南泥湾种鸦片 知乎 编辑:程序博客网 时间:2024/05/29 19:32
root@DB-02 ~]# mysql -u root
-bash: mysql: command not found
原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件。
首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径是:/usr/local/mysql/bin/mysql,我们则可以这样执行命令:
# ln -s /usr/local/mysql/bin/mysql /usr/bin
如果出现ln: /usr/bin/mysql: Permission denied
在前面加入sudo 然后enter密码即可。
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 的方法
- super和this的比较
- hdu 2147 kiki's game 巴什博弈
- 第二次 尝试 我的
- 调试小技巧
- POJ1548
- 解决bash: mysql: command not found 的方法
- 《性能测试》之理发店模型
- iOS代理设计模式
- Django入门:python manage.py dbshell错误
- Stay Hungry. Stay Foolish.
- 克里斯航沥斯夫斯基定律------------原创
- 列表、元组以及字符串
- cygwin 2.8.74版本离线包(分别为win7 32和64位)
- xml解析工具类