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',         'xb,W=8IP|,F+2sT3)KBf_.5K#f<!+-@89DHPL1B/Oml(-.m:NCLJEwaf6o!xw@4K');
define('SECURE_AUTH_KEY',  '`+/~z`TO{!hs[fz[}rE/.zrhFaB9>!lI[P<6#+8Io>Br;2py(#E!Yn1?!d7EpOQW');
define('LOGGED_IN_KEY',    '-,3_L6fL+D<%G*pMU6hY@7?I$1t:yV}BLf8o3A({u#LTT>)oKky<S@#|P{wr k4J');
define('NONCE_KEY',        'c1-X~V4G4j;m{-&FShl}QM5W[bdY:Cuf7jqMj$blxH +$o-Ku|%h#a>aR;69_5>O');
define('AUTH_SALT',        ':LaS--i2E0+-k]?lq>Iwp#E0|C,__`qM/BzJ${!@|Z|U.[Co)nD`:ygM?y;S-1<c');
define('SECURE_AUTH_SALT', '^e[{4dn!4ej?0  |^^`^nni&PvbY4Jz.-AxxCl+a#YI{k]f[[cwLH=i_Oz_9i.@R');
define('LOGGED_IN_SALT',   'cr?o|V!X`Ztz%AuuS|m(xFA$EX/|~|U+`Eh/[b-)/MA6ysgTdw|AXR&mAivUm|6q');
define('NONCE_SALT',       '<9k}Z4t~V=!4u`|-muV;a<jh7F.Y++~&7.ndk?-mCp:>s?y%C12]k;Es8z!8{.N(');


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