简体   繁体   English

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

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

i am using hybridauth to get userinformation from social web sites like facebook,twitter, etc. PHP lib to connect i configured using install.php which is available in lib itself. 我正在使用hybridauth从Facebook,Twitter等社交网站获取用户信息。 用于连接的lib lib我使用lib本身提供的install.php进行配置。

when i tried to use some examples available i get the following errore 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 This sample requires a Mysql database. Please edit the configuration file: application.config.php

i really don't know where this file application.config.php is available. 我真的不知道这个文件application.config.php在哪里可用。

also i get got an error! Hybridauth Library needs the CURL PHP extension. 我也got an error! Hybridauth Library needs the CURL PHP extension. got an error! Hybridauth Library needs the CURL PHP extension.

since i am very new to PHP blinking what to do next. 因为我对PHP很陌生,不知道下一步该做什么。

Please help me to solve this. 请帮我解决这个问题。

Regards Tony 关心托尼

Firstly, you need php-curl.. most repo's php installs include this, so it's odd you haven't gotton it. 首先,你需要php-curl ..大多数repo的php安装包括这个,所以很奇怪你没有gotton它。 You have specified what OS you're working on, but a quick google search will give you instructions on installing this. 您已经指定了您正在使用的操作系统,但快速谷歌搜索将为您提供有关安装此操作的说明。 If you're working on a RHEL-based system, do; 如果您正在使用基于RHEL的系统,请执行;

yum install php-common
yum install php-curl

The former installing all php common packs, and the latter specifically installing curl. 前者安装所有php常用包,后者专门安装curl。

likewise, you'll need to find where application.config.php is - again, on RHEL-based systems, you can run; 同样,你需要找到application.config.php的位置 - 再次,在基于RHEL的系统上,你可以运行;

find -name application.config.php

- otherwise, find out how to do a system search on the OS you're currently working on. - 否则,找出如何在您当前正在处理的操作系统上进行系统搜索。 Looks like it's just a standard issue where you haven't defined your mysql information (database name, username, password); 看起来这只是一个标准问题,你没有定义你的mysql信息(数据库名称,用户名,密码); once you input these into your application.config.php, you should be good to go. 一旦你将它们输入你的application.config.php,你应该很高兴。

Best of luck with it. 祝你好运。

  • Eoghan 锐衡

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

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