我真的很困惑wordpress安装。 wp_config文件具有我的mysql(localhost)实例的根用户名和密码,并且我创建了一个名为'wordpress'的空白数据库(我不确定我是否应该创建一个数据库)。在OS X上安装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', '');
试过这个。不为我工作:/ – user3789629 2016-01-07 16:03:39