欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

mysql 命令"command not found"

程序员文章站 2022-07-12 13:23:00
...

mysql 命令"command not found"
场景:在IP:20的服务器上安装mysql后,想在IP:21的服务器*问mysql,但出现了上图的问题,无mysql这个命令,这是原因之一是:mysql的client没有安装;
我安装了一次msyql_client;

yum install mysql
之后就没问题了:

[[email protected] logs]# mysql -uroot -h 10.10.107.20 -pzhu88jie
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 8329
Server version: 10.1.25-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> 
yum install mysql #安装的是mysql client

`

相关标签: mysql