رفتن به مطلب

مشکل در نصب وردپرس روی ساب دامین


پست های پیشنهاد شده

سلام من یک ساب دامین ساختم و وردپرس رو داخل پوشه ساب دامین نصب کردم. دیتابیس جدا ساختم و داخل فایل کافینگ قرار دادم اطلاعات رو الان وقتی ادرس ساب دامنه رو میزنم مینویسه 

خطا در برقراری ارتباط با پایگاه‌داده

لطفا دوستان راهنمایی کنن.

لینک به ارسال

مطمئنا نام دیتابیس یا یوزر و یا پسورد رو اشتباهی وارد فایل config کردید .

لینک به ارسال

رو عکس بالا dbhost باید بشه   localhost

نمونه کد:

<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wp');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         'PT^B;i(Y$;h/|}HXI:XTLATZx RH1EnXxNBMG9Xci$HL}t s.M:Q37Z^9-4[m-uK');
define('SECURE_AUTH_KEY',  'T^b #H6]L|F%Qj>1o-L$xiwgP,nk,mc_PJ*eOE0ztUqIu(gkUQs:-ZZX<z-OfI2<');
define('LOGGED_IN_KEY',    'ZNb,+A?Wg++@vB,9?pG~y7`:jrKPhN!n~7|NWvS:jorxyt/{{hf|v9?3-r] >%/f');
define('NONCE_KEY',        'Z033F)$HyE8DCcHa^JN+*b@pPsqB+Y (%L2Y*ez/cP2*lly8x{7-Z!_@`SrA&jg:');
define('AUTH_SALT',        ')ayFdU{,oGX)#6Hl8uRC+l+U9bof8@JRr+F;x!gy|H^)0]tt-Xo`@i.PC|Pcu^X=');
define('SECURE_AUTH_SALT', 'pI9wV8O-,gP:$WkvPaqQEv2Pe`0_OB90X9^Be^L05&<mF/-3Hf0Hd?7eKM3KvGf)');
define('LOGGED_IN_SALT',   'k-P`-Tnwi;v:9sKd-|y9vDMX0bB+PZ]b ,TB%xut*}d(9=hzY/V5aG]i4v{7u3cc');
define('NONCE_SALT',       ')|;-Iy7(T]60Af1R_@^G[pM<)0PD?0qplYc%@l{52>FM/UwEwmONU_arHiSMv_S5');

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */
$table_prefix  = 'wp_';

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 *
 * For information on other constants that can be used for debugging,
 * visit the Codex.
 *
 * @link https://codex.wordpress.org/Debugging_in_WordPress
 */
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

 

ویرایش شده توسط S@eid
لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...