我对 WordPress 的安装感到非常困惑。wp_config 文件中有我本地 MySQL 实例的根用户名和密码,我已经创建了一个名为“wordpress”的空数据库(我不确定是否应该先创建一个数据库)。
当我访问 http://localhost/wordpress/ 时,出现了“无法建立数据库连接”的错误信息。我需要先创建一个名为“wordpress”的数据库吗?
以下是我的配置文件凭据:
当我访问 http://localhost/wordpress/ 时,出现了“无法建立数据库连接”的错误信息。我需要先创建一个名为“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', '');