mysql:If 'mysql' is not a typo you can use command-not-found to lookup the package that contains
2017-12-26 17:02
666 查看
今天升级安装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
即可正常登陆。
安装了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
即可正常登陆。
相关文章推荐
- 【DB2】If 'db2' is not a typo you can run the following command to lookup the package that contains the binary: command-not-found db2 bash: db2: command not found
- cocoapods was not able to update the 'master' repo.if it is a unexpected issue and persists you can
- ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings
- Cannot connect to WMI provider.You do not have permission or the server is unreachable.Note that you can only manager SQL Server 2005 and later version with SQL Server Configuration Manager.Invalid namespace [0x8004100e]
- Wrapper class package.jaxws.methodName is not found. Have you run APT to generate them?解决方案
- 23 How can you reverse the effects of an ALTER DISKGROUP … DROP DISK command if it has not yet compl
- Wrapper class package.jaxws.methodName is not found. Have you run APT to generate them?解决方案
- Jenkins部署:The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
- this install package could not be opened. verify that the package exists and that you can ac
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- Saving changes is not permitted. The changes that you have made require the following tables to be d
- 错误 the type "xxxx" is defined in an assembly that is not refernced.You must add a reference to assem
- Internet Information Services is not installed. You must have Internet Information Services installed in order to use the SharePoint Products and Technologies Configuration Wizard
- eclipse创建Adnroid虚拟机提示:XXXX目录.avd is in the way. Use --force if you want to overwrite.
- Can't use Subversion command line client: svn Probably the path to Subversion executable is wrong. F
- Error: Android SDK not found. Make sure that it is installed. If it is not at the default location,
- Can't use Subversion command line client: svn Probably the path to Subversion executable is wrong. F