【问题标题】:Where to install mariadb-devel and python34-mysql-debug packages for python in a split app server / db server environment在拆分应用程序服务器/数据库服务器环境中为 python 安装 mariadb-devel 和 python34-mysql-debug 包的位置
【发布时间】:2018-04-23 17:48:24
【问题描述】:

为了让 PythonMariaDB 对话,我需要在使用 pip 安装 mysqlclient 之前安装 mariadb-devel 和 python34-mysql-debug 包。我已经在一台服务器上使用 Python 和 MariaDB 完成了这项工作。现在,我将它安装在具有两台服务器的环境中:运行 Python 代码的 AppServer 和运行 MariaDB 的 DBServer。那么,maradb-devel 和 python34-mysql-debug 需要安装在 AppServer 上还是 DBServer 上?

两台服务器都运行 RHEL 7.4。

MariaDB 是 10.1 版

Python 是 3.4 版

谢谢!

【问题讨论】:

    标签: python mysql mariadb


    【解决方案1】:

    mariadb-devel 和 python34-mysql-debug 包需要安装在运行 Python 的应用服务器上。我对此进行了测试,它正在工作 - 我能够运行一个简单的 Python 脚本并连接到另一台服务器上的数据库。

    【讨论】:

      猜你喜欢
      • 2014-07-16
      • 2017-09-13
      • 2013-11-06
      • 1970-01-01
      • 2014-06-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多