WordPress 的 wp-config.php 基礎配置檔案使用說明。

標籤: 

  • 該話題包含 0 個回覆,1 人參與,最後由詩語 更新於 7 年前
正在檢視 1 個帖子:1-1 (共 1 個帖子)
  • 作者
    帖子
  • 詩語
    管理員
    • 文章數量: 5,932
    @feibisi
    樓主
    
    /** 
     * WordPress 基礎配置檔案。 
     * 
     * 這個檔案被安裝程式用於自動生成 wp-config.php 配置檔案, 
     * 您可以不使用網站,您需要手動複製這個檔案, 
     * 並重新命名為 「wp-config.php」,然後填入相關資訊。 
     * 
     * 本檔案包含以下配置選項: 
     * 
     * * MySQL 設定 
     * * 金鑰 
     * * 資料庫表名字首 
     * * ABSPATH 
     * 
     * @link https://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php 
     * 
     * @package WordPress 
     */ 
    
    // ** MySQL 設定 - 具體資訊來自您正在使用的主機 ** // 
    /** WordPress 資料庫的名稱 */ 
    define('DB_NAME', 'database_name_here'); 
    
    /** MySQL 資料庫使用者名稱 */ 
    define('DB_USER', 'username_here'); 
    
    /** MySQL 資料庫密碼 */ 
    define('DB_PASSWORD', 'password_here'); 
    
    /** MySQL 主機 */ 
    define('DB_HOST', 'localhost'); 
    
    /** 建立資料表時預設的文字編碼 */ 
    define('DB_CHARSET', 'utf8'); 
    
    /** 資料庫整理型別。如不確定請勿更改 */ 
    define('DB_COLLATE', ''); 
    
    /**#@+ 
     * 身份認證金鑰與鹽。 
     * 
     * 修改為任意獨一無二的字串! 
     * 或者直接訪問 {@link https://api.wordpress.org/secret-key/1.1/salt/ 
     * WordPress.org 金鑰生成服務} 
     * 任何修改都會導致所有 cookies 失效,所有使用者將必須重新登入。 
     * 
     * @since 2.6.0 
     */ 
    define('AUTH_KEY',         'put your unique phrase here'); 
    define('SECURE_AUTH_KEY',  'put your unique phrase here'); 
    define('LOGGED_IN_KEY',    'put your unique phrase here'); 
    define('NONCE_KEY',        'put your unique phrase here'); 
    define('AUTH_SALT',        'put your unique phrase here'); 
    define('SECURE_AUTH_SALT', 'put your unique phrase here'); 
    define('LOGGED_IN_SALT',   'put your unique phrase here'); 
    define('NONCE_SALT',       'put your unique phrase here'); 
    
    /**#@-*/ 
    
    /** 
     * WordPress 資料表字首。 
     * 
     * 如果您有在同一資料庫內安裝多個 WordPress 的需求,請為每個 WordPress 設定 
     * 不同的資料表字首。字首名只能為數字、字母加下劃線。 
     */ 
    $table_prefix  = 'wp_'; 
    
    /** 
     * 開發者專用:WordPress 除錯模式。 
     * 
     * 將這個值改為 true,WordPress 將顯示所有用於開發的提示。 
     * 強烈建議外掛開發者在開發環境中啟用 WP_DEBUG 。 
     * 
     * 要獲取其他能用於除錯的資訊,請訪問 Codex 。 
     * 
     * @link https://codex.wordpress.org/Debugging_in_WordPress 
     */ 
    define('WP_DEBUG', false); 
    
    /** 
     * zh_CN 本地化設定:啟用 ICP 備案號顯示 
     * 
     * 可在設定→常規中修改。 
     * 如需禁用,請移除或註釋掉本行。 
     */ 
    define('WP_ZH_CN_ICP_NUM', true); 
    
    /* 好了!請不要再繼續編輯。請儲存本檔案。使用愉快! */ 
    
    /** WordPress 目錄的絕對路徑。 */ 
    if ( !defined('ABSPATH') ) 
        define('ABSPATH', dirname(__FILE__) . '/'); 
    
    /** 設定 WordPress 變數和包含檔案。 */ 
    require_once(ABSPATH . 'wp-settings.php'); 
    
正在檢視 1 個帖子:1-1 (共 1 個帖子)
  • 哎呀,回覆話題必需登入。

話題資訊

  • 當前位於:安裝使用
  • 0 條回覆
  • 1 個參與人
  • 最後回覆:<a href="https://bbs.weixiaoduo.com/users/feibisi/" title=" 檢視詩語的個人資料" class="bbp-author-link"><span class="bbp-author-name"> 詩語</span></a>
  • 上次活動:<a href="https://bbs.weixiaoduo.com/topic/25652/" title="WordPress 的 wp-config.php 基礎配置檔案使用說明。">7 年前</a>