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',         '%4g8}(RpWE+Ao!_8Lsu{|506*.;8|r r7A2vXe]=i}ro{|2nw*vMg$2Ix*|l|-En');
define('SECURE_AUTH_KEY',  'fHaI`qz,| S@-2MgFx]~WdP>Yh8Ck6.l{~.*:n3f?&R]G4QN@M,fkAul }*[l)yw');
define('LOGGED_IN_KEY',    'd=Dg4349J{kNbtwB@+=;<q()|Cjy(Mp$hU4XZKj/M89pPYcuv+3ES]{+S!Z?iV1j');
define('NONCE_KEY',        'gd@BH>$!YD6f|l.GL~>!d-q@B?[O6,o.H-[wQGZa7AA-}^QkQ@GUVY%kDp:/sioi');
define('AUTH_SALT',        'KKDo=o0`Klo6+zYu)di7t5{_C[`R<;i4Bi~E}IxEi8TDR|-1~(>|w+~6h5J&urS~');
define('SECURE_AUTH_SALT', 'S--h|:9ph2r@h4,qjn[5;--qay?<eVz$(s+U)Hxq0qTXvR5I70ym_o;TXCRegRc_');
define('LOGGED_IN_SALT',   'nU3?k]$NyFU`}g`d%-Tc (0O<PaZzik1EiY^@|~V 8zGa_{>Yv}dZPB}3F28pn|S');
define('NONCE_SALT',       'Ke*e;96AR:%HG)Fe_rYTe/+7QjD=@p8-Ca/p@:/Z:hzkCoxG!rqi%6>YP+QT|e6U');


/* 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.