Use Database On External Server

WPTurbo » Snippets » Use Database On External Server
0

Created with:

WP Config Generator

Visibility: 

public

Creator: WPTurbo Team

Customize with WPTurbo AI
X

Add Snippet To Project

New Project
Add To Existing Project
				/**
 * 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://wordpress.org/support/article/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', 'external_db' );
/** MySQL database username */
define( 'DB_USER', 'db_username' );
/** MySQL database password */
define( 'DB_PASSWORD', 'db_password' );
/** MySQL hostname */
define( 'DB_HOST', '149.168.71.231' );
/** The Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );


/* Prefix For All Database Tables */
/**
* 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_';


/**#@+
* 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',         'Ui6E+H&H|;O9MI*{3U>jJqu&4g*|=DzV-*/XTGvGyQ%u<I}t+p+l^X9)!B&&;Iju');
define('SECURE_AUTH_KEY',  'NEg`m28.:t7@[E<V44HKw9f!f^sWPH4.M&uZF#uRUm]7{7.d42lv&)Aq<*:TfHNZ');
define('LOGGED_IN_KEY',    'Cn_-l-u2,iZXZZC=$bSf7]FsB&E e]2}liBY&2y6m~@Z0 9=3%{vgVejAnB=WzYd');
define('NONCE_KEY',        'jIdhBjr(l:^Uo6;S_r@XrU  V ?Y#s;|+cq=T3+D@Po@|X!-|13dpbfb&#w+nD_m');
define('AUTH_SALT',        '|ZIvfvijJy/CYaw,-CB(@nB6`-~s>ao30N(}!)+68-Z#=D8tHM?OQM.2oaW$VfA1');
define('SECURE_AUTH_SALT', 'GU<z25w(DI`78ZLUzPVc!%U|@UCG21xYF,[E`{c>VU~*c%X1`IIa7#`:X.ZH;u&7');
define('LOGGED_IN_SALT',   '-c>_zTd9.-I#){U[-GXBY>3J5L|g:rBy9Cy78YUpiEv3,:|RNj`FS|Y^,5v#]M5p');
define('NONCE_SALT',       'lDhP5^to#9Sla.}A{={@qC^~-/Un5>n9*P pVBW)5<rB|h+*_iM|EQy?!pK8t1T4');


/* Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
  define('ABSPATH', __DIR__ . '/');
/* Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

			

Register an account to save your snippets or go Pro to get more features.