0

这是我的环境:

我在 Microsoft Windows 10 Pro 上安装了 MariaDB 10.5,10.0.19042 在 Intel NUC8i5BEH 上运行。我有两个客户端系统,第一个是运行 BigSur 11.2.3 的 MacBook Pro,运行 mysql Ver 15.1 Distrib 10.5.9-MariaDB,osx10.16 (x86_64) 使用 readline 5.1,一个 Raspberry PI4 和 Fedora 33 运行 mysql Ver 15.1 Distrib 10.5.9-MariaDB,适用于使用 EditLine 包装器的 Linux (aarch64)。

Mac 上的客户端运行良好:

% mysql --user=****** --password=****** --host=****
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 10.5.8-MariaDB mariadb.org binary distribution

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)]>

但是,Raspberry Pi 上的客户端失败了:

$ mysql --user=****** --password=****** --host=*****
ERROR 2013 (HY000): Lost connection to MySQL server at 'handshake: reading initial communication packet', system error: 104

我在 Windows 上的 MariaDB 日志中没有看到任何错误,并且我已关闭所有防火墙。我尝试在 Raspberry Pi 上运行 Wireshark,我看到数据包从 RPI 发送到 NUC,但没有返回数据包。

我还有一个 Spring Boot 应用程序,我在 RPI 上使用 Eclipse 进行调试,但它因“连接重置”而​​失败。

这不会 100% 失败。很少有事情会因为一些未知的原因开始工作几分钟,但很快它就会再次开始失败。我已经为此苦苦挣扎了几个星期。任何人都可以提供有关出了什么问题的线索吗?

我对 RPI 有一点问题,有 WebKit 内存问题。RPI4 有 4GB 内存。我刚刚将 MicroSD 卡大小翻倍并升级到 UHS-1 并添加了一个 8GB 交换文件,以加快速度并减少内存不足的机会。

此外,所有三台机器都在同一个子网 10.0.0.0 上,并且在所有三台机器上都禁用了防火墙。

我重新运行 Wireshark 并得到以下信息:

client->server [SYN]
server->client [SYN,ACK]
client->server [TCP Retransmission]
server->client [RST]

所以看起来服务器正在发送重置。

4

0 回答 0