简体   繁体   English

IIS上的Drupal-无法连接到数据库

[英]Drupal on IIS - Cannot connect to the database

I've hard time to make Drupal work on IIS Microsoft server. 我很难让Drupal在IIS Microsoft服务器上工作。 I've succesfully run Joomla on the same server so I'm pretty sure the following information are correct: 我已经在同一台服务器上成功运行了Joomla,所以我很确定以下信息是正确的:

host: localhost
user: user
pass: pass
databaseName = servername_databasename

I've set the following line in settings.php file: 我在settings.php文件中设置了以下行:

$db_url = 'mysql://user:password@localhost/servername_databasename';

but what I get is this: 但是我得到的是:

If you are the maintainer of this site, please check your database settings in the settings.php file and ensure that your hosting provider's database server is running. For more help, see the handbook, or contact your hosting provider.

I don't get any other error message such as: database doesn't exist, user/pass wrong.. just this. 我没有收到任何其他错误消息,例如:数据库不存在,用户/传递错误..就是这样。

The database is running, I can access with phpmyadmin. 数据库正在运行,我可以使用phpmyadmin访问。

I've tried both "mysql" and "mysqli". 我已经尝试了“ mysql”和“ mysqli”。 The host is a private server (IIS Microsoft), the database is Mysql 主机是一台私有服务器(IIS Microsoft),数据库是Mysql

The database and website files upload have also been succesfull.. so I dunno what to do to fix this issue. 数据库和网站文件上传也成功。.因此,我不知道该怎么做才能解决此问题。

thanks 谢谢

我解决了...这是错误的数据集设置。

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

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