【问题标题】:Mariadb on Termux Android not accessibleTermux Android 上的 Mariadb 无法访问
【发布时间】:2020-10-28 06:19:01
【问题描述】:

我在 Android 手机(华为)和 Android 平板电脑上安装了 Mariadb 服务器/Termux。

在 Termux 中,Mariadb 使用以下方式启动:

mysqld_safe -u root &

在华为手机上,只有当 Termux 当前在前台运行时,才能访问 Mariadb 服务器。在我关闭 Termux 后,没有终止,Mariadb 就无法访问了。

在 Android 平板电脑上,即使在 Termux 关闭(未终止)后也可以访问 Mariadb 服务器。

我正在使用flutter通过驱动程序'mysql1'访问Mariadb。

此行为是否特定于特定版本的 Android?

【问题讨论】:

    标签: android flutter mariadb termux


    【解决方案1】:

    我认为您的华为的 android 正在杀死后台应用程序。尝试从电池优化中忽略 termux article about it

    使用termux服务运行mysql termux services docs

    【讨论】:

      猜你喜欢
      • 2019-01-03
      • 2021-04-12
      • 2018-09-19
      • 1970-01-01
      • 2020-10-26
      • 2021-05-05
      • 2011-07-30
      • 2017-10-18
      • 2016-08-15
      相关资源
      最近更新 更多