在Wordpress中,将有一个默认值wp-config.php 文件,我想您的软件包中缺少了这个。请检查是否存在,否则创建一个文件名为的新文件wp-config.php 并将以下代码与适当的数据库凭据放在其中。
<?php
// ** MySQL settings ** //
define(\'DB_NAME\', \'DATABASE-NAME\'); // The name of the database
define(\'DB_USER\', \'DATABASE-USERNAME\'); // Your MySQL username
define(\'DB_PASSWORD\', \'DATABASE-PASSWORD\'); // ...and password
define(\'DB_HOST\', \'localhost\');
define(\'DB_CHARSET\', \'utf8\');
define(\'DB_COLLATE\', \'\');
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = \'wp_\'; // Only numbers, letters, and underscores please!
// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to \'de\'
// to enable German language support.
define (\'WPLANG\', \'\');
/* That\'s all, stop editing! Happy blogging. */
define(\'ABSPATH\', dirname(__FILE__).\'/\');
require_once(ABSPATH.\'wp-settings.php\');
?>