0

我在运行 Raspbian Buster 的 Raspberry Pi 4B 上安装了 MariaDB 10.3.17 服务器。最近,我构建的一些应用程序(在本例中为 LabVIEW)无法打开连接。我已经使用同一个 LabVIEW 应用程序成功完成此操作已有一段时间了,所以我开始怀疑 RPi+Maria 服务器上是否有任何变化。

我在 LabVIEW 中编写了一个非常快速的数据库测试应用程序,它利用了一些简单的 MySQL API 函数(打开连接、使用数据库、插入一行。)但它一直被拒绝(在 LabVIEW 中,抛出错误 8045:

“ MySQLVIEW.lvlib:MySqlConnector.lvclass 中用户'aeiuser'@'192.168.6.99 的访问被拒绝”(使用密码:YES)

因此,由于似乎服务器端拒绝它,运行sudo systemctl status mariadb在日志中提供以下内容:

> Active: active (running) since Sun 2020-01-26 20:53:10 CST; 3min 16s ago  
> Docs: man:mysqld(8)  
> https://mariadb.com/kb/en/library/systemd/  
> Process: 5369 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)  
> Process: 5370 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)  
> Process: 5372 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment  
> Process: 5412 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)  
> Process: 5415 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)  
> Main PID: 5381 (mysqld)  
> Status: "Taking your SQL requests now..."  
    >> Tasks: 32 (limit: 4915)  
    >> Memory: 47.8M  
   >> CGroup: /system.slice/mariadb.service  
           └─5381 /usr/sbin/mysqld

> Jan 26 20:53:11 raspberrypi /etc/mysql/debian-start[5468]: | 4  | system user |           |    | Daemon  |      | InnoDB purge worker      |                  | 0.  
Jan 26 20:53:11 raspberrypi /etc/mysql/debian-start[5468]: | 5  | system user |           |    | Daemon  |      | InnoDB shutdown handler  |                  | 0.
Jan 26 20:53:11 raspberrypi /etc/mysql/debian-start[5468]: | 36 | root        | localhost |    | Query   | 0    | Init                     | show processlist | 0.  
Jan 26 20:53:11 raspberrypi /etc/mysql/debian-start[5468]: +----+-------------+-----------+----+---------+------+--------------------------+------------------+---  
Jan 26 20:53:11 raspberrypi /etc/mysql/debian-start[5468]: Uptime: 1  Threads: 7  Questions: 59  Slow queries: 0  Opens: 32  Flush tables: 1  Open tables: 26  Que  
Jan 26 20:53:18 raspberrypi mysqld[5381]: 2020-01-26 20:53:18 37 [Warning] IP address '192.168.6.99' could not be resolved: Name or service not known  
Jan 26 20:53:18 raspberrypi mysqld[5381]: 2020-01-26 20:53:18 37 [Warning] Access denied for user 'aeiuser'@'192.168.6.99' (using password: YES)

注意最后两行。我似乎找不到比这更具体的东西了。我已经阅读了诸如skip-name-resolve在 /etc/my.cnf 中使用之类的内容,但是对此我没有运气。

在服务中的某个地方,我可以找到关于正在发生的事情的更详细的信息吗?有任何想法吗?

谢谢

4

0 回答 0