到安裝的主目錄,找到wp-config.php,如下信息為連接資料庫參數:
/** WordPress資料庫的名稱 */ define('DB_NAME', 'wpdx'); /** MySQL資料庫用戶名 */ define('DB_USER', 'root'); /** MySQL資料庫密碼 */ define('DB_PASSWORD', 'root'); /** MySQL主機 */ define('DB_HOST', 'localhost');
找到DB_USER和DB_PASSWORD
修改相關數據。