mysql问题处理(报错代码 -bash:mysql:command not found)
来源:互联网 发布:nginx与phpfpm 编辑:程序博客网 时间:2024/05/21 06:34
问题为:
[root@Neo777 bin]# mysql -u root -p
-bash: mysql: command not found #报错
我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件。首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径
是:/www/lanmps/mysql5.7.17/bin/mysql,我们则可以如下这样执行命令:
root@Neo777 bin]# ln -s /www/lanmps/mysql5.7.17/bin/mysql /usr/bin
[root@Neo777 bin]# mysql -u root -p
Enter password: #(默认为空密码)
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.17 Source distribution
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> #(进入mysql)
- mysql问题处理(报错代码 -bash:mysql:command not found)
- mac 安装 MySQL报错 -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
- MySQL问题解决:-bash: mysql: command not found
- MySQL问题解决:-bash: mysql: command not found
- MySQL问题解决:-bash:mysql:command not found
- MySQL问题解决:-bash:mysql:command not found
- MySQL问题解决:-bash:mysql:command not found
- MySQL问题解决:-bash:mysql:command not found
- Mysql bash: mysql: command not found
- MySQL问题解决:-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 mac
- nginx代理TCP模块
- 今天遇到的问题总结
- 如何写一个给自己的框架写一个优雅的Java Config模块(二)
- Android自定义View入门---自定义一个TextView
- 【Quartz】Quartz存储与持久化-基于quartz.properties的配置
- mysql问题处理(报错代码 -bash:mysql:command not found)
- Android组件service_基础(四)
- 11.2.0.4升级到12.2.0.1详细步骤
- Fillder拦截HTTP请求并修改数据
- Android监听Home键和Recent Apps键
- 2017--Android常用框架集合
- Servlet 知识点(三) -- Servlet 的文件上传功能的表单获取问题(2)
- Tomcat启动超时问题Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds
- Oracle如何创建用户,表空间