0

我目前正在使用石灰调查模块在 drupal 上构建一个站点。我尝试配置limesurvey 和我的网站之间的同步。我打开了 sites/default/settings.php,并在 $databases['default']['default'] 变量之后添加了以下行:

$databases['ls']['default'] = array(
'driver' => 'your_LimeSurvey_driver',
'database' => 'your_LimeSurvey_database_name',
'username' => 'your_LimeSurvey_database_username',
'password' => 'your_LimeSurvey_database_user_password',
'host' => 'your_LimeSurvey_host'
'prefix' => 'lime_' [or another value]
'collation' => 'utf8_general_ci' [or another value]
); 

按照指示。我第一次遇到这个错误( Parse error: syntax error, unexpected ''prefix'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in C:\wamp\www\lime survey\drupal-7.24\sites\default\settings.php 上线235 ) 并通过从代码中取出“[或其他值]”来解决它。

我现在正面临这些错误(http://postimg.org/image/b6ynerdr1/)(http://postimg.org/image/io7utz3a5/) ,我已经没有想法了。请帮帮我

4

1 回答 1

0

"your_LimeSurvey_driver" 不应该是文字值。您应该根据您使用的数据库类型将其更改为“mysql”、“pgsql”或“sqlite”。它可能是'mysql'。

同样,您应该将“your_LimeSurvey_database_name”等更改为数据库的实际名称、用户名和密码,并且“your_LimeSurvey_host”应该是数据库运行的主机——可能是“localhost”或“127.0.0.1”,具体取决于您的设置.

于 2014-01-08T23:15:10.130 回答