博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysql:If 'mysql' is not a typo you can use command-not-found to lookup the package that contains
阅读量:17411 次
发布时间:2019-09-18

本文共 576 字,大约阅读时间需要 1 分钟。

今天升级安装mysql服务,版本 mysql-5.7.20

安装了mysql,并且mysql进程已经正常启动.

GX-BATCH-DN-T-16:/hadoop# ps -ef | grep mysql

mysql    30434     1  0 16:47 ?        00:00:00 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysql/mysqld.pid

root     30516 29858  0 17:03 pts/0    00:00:00 grep --color=auto mysql

当使用mysql -uroot -p进行登陆的时候,

报错:If 'mysql' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf mysql

这个很明显是系统无法找到 mysql这个命令,后来一想,mysql -uroot -p的mysql应该是mysql客户端命令,应该是mysql的客户端没有安装

执行命令:rpm -ivh /hadoop/mysql/mysql-community-client-5.7.20-1.sles12.x86_64.rpm

 即可正常登陆。

转载地址:http://qpxthz.baihongyu.com/

你可能感兴趣的文章
spring boot 与 Ant Design of Vue 实现组织管理布局的实现(二十二)
查看>>
spring boot 与 Ant Design of Vue 实现左侧组织树(二十三)
查看>>
spring boot 与 Ant Design of Vue 实现新增组织(二十四)
查看>>
spring boot 与 Ant Design of Vue 实现修改组织(二十五)
查看>>
spring boot 与 Ant Design of Vue 实现删除组织(二十六)
查看>>
spring boot 与 Ant Design of Vue 实现获取用户列表(二十七)
查看>>
spring boot 与 Ant Design of Vue 实现删除用户(三十)
查看>>
spring boot 与 Ant Design of Vue 鉴权体系获取用户信息的实现(三十二)
查看>>
Druid连接池实现自定义场景的多数据库的连接
查看>>
PL/SQL数据库管理工具的使用
查看>>
带你玩转属于自己的spring-boot-starter系列(一)
查看>>
带你玩转属于自己自己的spring-boot-starter系列(二)
查看>>
带你玩转属于自己的spring-boot-starter系列(三)
查看>>
基于SnowFlake算法如何让分库分表中不同的ID落在同一个库的算法的实现
查看>>
基于springboot的ShardingSphere5.X的分库分表的解决方案之分表解决方案(一)
查看>>
基于springboot的ShardingSphere5.X的分库分表的解决方案之关联查询解决方案(三)
查看>>
Linux文件管理参考
查看>>
FTP文件管理项目(本地云)项目日报(二)
查看>>
FTP文件管理项目(本地云)项目日报(三)
查看>>
FTP文件管理项目(本地云)项目日报(七)
查看>>