如何解决这个问题 此示例需要一个 Mysql 数据库.请编辑配置文件:application.config.php


How to solve this This sample requires a Mysql database. Please edit the configuration file: application.config.php?

我正在使用Hybridauth从Facebook,Twitter等社交网站获取用户信息。PHP 库连接我使用 install.php 在 lib 本身中可用

当我尝试使用一些可用示例时,我得到以下错误This sample requires a Mysql database. Please edit the configuration file: application.config.php

我真的不知道这个文件application.config.php在哪里可用。

我也得到got an error! Hybridauth Library needs the CURL PHP extension.

因为我对PHP很陌生,眨眼下一步该做什么。

请帮我解决这个问题。

问候托尼

首先,你需要php-curl..大多数存储库的PHP安装都包含这个,所以奇怪的是你还没有得到它。您已经指定了正在使用的操作系统,但是快速的Google搜索将为您提供有关安装此操作系统的说明。如果您正在使用基于 RHEL 的系统,请执行;

yum install php-common
yum install php-curl

前者安装所有 php 通用包,后者专门安装 curl。

同样,您需要找到 application.config.php 的位置 - 同样,在基于 RHEL 的系统上,您可以运行;

find -name application.config.php

- 否则,请了解如何在您当前正在使用的操作系统上进行系统搜索。看起来这只是一个标准问题,您尚未定义mysql信息(数据库名称,用户名,密码);一旦你把这些输入到你的application.config.php,你应该很高兴。

祝你好运。

  • 伊奥汉