我真的很困惑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