wp-config-sample.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /**
  3. * WordPress基础配置文件。
  4. *
  5. * 这个文件被安装程序用于自动生成wp-config.php配置文件,
  6. * 您可以不使用网站,您需要手动复制这个文件,
  7. * 并重命名为“wp-config.php”,然后填入相关信息。
  8. *
  9. * 本文件包含以下配置选项:
  10. *
  11. * * MySQL设置
  12. * * 密钥
  13. * * 数据库表名前缀
  14. * * ABSPATH
  15. *
  16. * @link https://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php
  17. *
  18. * @package WordPress
  19. */
  20. // ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
  21. /** WordPress数据库的名称 */
  22. define( 'DB_NAME', 'database_name_here' );
  23. /** MySQL数据库用户名 */
  24. define( 'DB_USER', 'username_here' );
  25. /** MySQL数据库密码 */
  26. define( 'DB_PASSWORD', 'password_here' );
  27. /** MySQL主机 */
  28. define( 'DB_HOST', 'localhost' );
  29. /** 创建数据表时默认的文字编码 */
  30. define( 'DB_CHARSET', 'utf8' );
  31. /** 数据库整理类型。如不确定请勿更改 */
  32. define( 'DB_COLLATE', '' );
  33. /**#@+
  34. * 身份认证密钥与盐。
  35. *
  36. * 修改为任意独一无二的字串!
  37. * 或者直接访问{@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org密钥生成服务}
  38. * 任何修改都会导致所有cookies失效,所有用户将必须重新登录。
  39. *
  40. * @since 2.6.0
  41. */
  42. define( 'AUTH_KEY', 'put your unique phrase here' );
  43. define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
  44. define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
  45. define( 'NONCE_KEY', 'put your unique phrase here' );
  46. define( 'AUTH_SALT', 'put your unique phrase here' );
  47. define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
  48. define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
  49. define( 'NONCE_SALT', 'put your unique phrase here' );
  50. /**#@-*/
  51. /**
  52. * WordPress数据表前缀。
  53. *
  54. * 如果您有在同一数据库内安装多个WordPress的需求,请为每个WordPress设置
  55. * 不同的数据表前缀。前缀名只能为数字、字母加下划线。
  56. */
  57. $table_prefix = 'wp_';
  58. /**
  59. * 开发者专用:WordPress调试模式。
  60. *
  61. * 将这个值改为true,WordPress将显示所有用于开发的提示。
  62. * 强烈建议插件开发者在开发环境中启用WP_DEBUG。
  63. *
  64. * 要获取其他能用于调试的信息,请访问Codex。
  65. *
  66. * @link https://codex.wordpress.org/Debugging_in_WordPress
  67. */
  68. define('WP_DEBUG', false);
  69. /* 好了!请不要再继续编辑。请保存本文件。使用愉快! */
  70. /** WordPress目录的绝对路径。 */
  71. if ( ! defined( 'ABSPATH' ) ) {
  72. define( 'ABSPATH', dirname( __FILE__ ) . '/' );
  73. }
  74. /** 设置WordPress变量和包含文件。 */
  75. require_once( ABSPATH . 'wp-settings.php' );