在日常维护中,经常碰到由于网站迁移更换mysql数据库的情况,为了方便用户准确修改,我特意将mysql数据库配置文件全部整理出来,下列整理出来的目录

开源系统                   据库配置文件名                       文件名所在的目录

Discuz!                       config.inc.php                              ./ config.inc.php

Phpcms                    config.inc.php                               ./include/config.inc.php

Wodpress                    wp-config.php                             ./ wp-config.php

Phpwind                     sqlconfig.php                               ./data/sqlconfig.php

Php168v6                   mysql_config.php                       ./php168/ mysql_config.php

Shopex                        config.php                                    ./config/config.php

Ecshop                        config.php                                    ./data/config.php

Joomla                        configuration.php                       ./ configuration.php

UCenter                     config.inc.php                            ./data/config.inc.php

EmpireCMS               config.php                                    ./e/class/config.php

Dedecms                    common.inc.php                         ./ common.inc.php

Zen Cart                     configure.php                              ./includes/configure.php

Mediawiki                  localsettints.php                        ./config/localsettints.php

Ecshop                        config.php                                    ./data/config.php

osCommerce            configure.php                              ./includes/configure.php

如果你的网站发生如下情况,请检查改你数据库配置文件来排出故障:

1、  数据库无法连接

2、  网站迁移

3、  无法打开网站,但php虚拟主机服务器运行正常无任何故障