繁体   English   中英

如何解决这个问题需要一个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等社交网站获取用户信息。 用于连接的lib lib我使用lib本身提供的install.php进行配置。

当我尝试使用一些可用的示例时,我得到以下错误This sample requires a Mysql database. Please edit the configuration file: application.config.php 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. got an error! Hybridauth Library needs the CURL PHP extension.

因为我对PHP很陌生,不知道下一步该做什么。

请帮我解决这个问题。

关心托尼

首先,你需要php-curl ..大多数repo的php安装包括这个,所以很奇怪你没有gotton它。 您已经指定了您正在使用的操作系统,但快速谷歌搜索将为您提供有关安装此操作的说明。 如果您正在使用基于RHEL的系统,请执行;

yum install php-common
yum install php-curl

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

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

find -name application.config.php

- 否则,找出如何在您当前正在处理的操作系统上进行系统搜索。 看起来这只是一个标准问题,你没有定义你的mysql信息(数据库名称,用户名,密码); 一旦你将它们输入你的application.config.php,你应该很高兴。

祝你好运。

  • 锐衡

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM