【发布时间】:2011-12-18 19:13:06
【问题描述】:
我对 wordpress 的安装感到很困惑。 wp_config 文件具有我的 mysql (localhost) 实例的 root 用户名和密码,并且我创建了一个名为“wordpress”的空白数据库(我不确定是否应该创建一个数据库开始)。
当我转到http://localhost/wordpress/ 时,我会收到一条'Error establishing a database connection' 消息。我想有一个名为“wordpress”的数据库吗?
这些是我在配置文件中的凭据:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', 'friday');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
【问题讨论】: