高版本登录低版本可以
[root@gaolinux81-1 ~]# mysql -uuser1 -p123456 -h192.168.158.182 -P3306
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 13
Server version: 10.3.10-MariaDB MariaDB Serve
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> exit
登录本机可以
[root@gaolinux81-1 ~]# mysql -uuser1 -p123456 -h192.168.158.181 -P3306
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.4.12-MariaDB MariaDB Serve
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
低版本登录高版本 不可以 防火墙关闭
[root@gaolinux81-2 mariadb]# mysql -uuser1 -p123456 -h192.168.158.181 -P3306
ERROR 2002 (HY000): Can't connect to MySQL server on '192.168.158.181' (115)
登录本机可以
[root@gaolinux81-2 mariadb]# mysql -uuser1 -p123456 -h192.168.158.182 -P3306
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 15
Server version: 10.3.10-MariaDB MariaDB Serve
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
有大神知道原因吗?
相似问题