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',         '^K&ICKOs(l,/hOfuw;$UfPiIwP|&Wqv-u),l8-8Ui~j*Q~t>yd9LLO,:Nj0]X=GA');
define('SECURE_AUTH_KEY',  '+} 1}z>N4)=oN%_3W,NmAA[}9qeUBlT[>ZzEd=<NK&ox*rMMH@N=_WF~[(<Zmk,;');
define('LOGGED_IN_KEY',    'QW+y%4sfLpB$ff~1B&EmSog(@}hhGt$WfdwQ0uT|V_hO/^|W@&xW!3iH99~V[0oP');
define('NONCE_KEY',        '!CB+rnE-2UZyL:1LlXB2~MdsBhE{WA,SQv/j}iv(~/>E >V2B A9wv9d~$lIPfV<');
define('AUTH_SALT',        '%s:op8P{Rg`3>cTA17Pb>|/2rHR1o;Ha6sTY>j=h9w?td81Z_S{@?PkXCsSr_&&T');
define('SECURE_AUTH_SALT', 'g;P!# %[V=YRb>miL=-<^cZ7<u9[:!3}G}Q^<z|5|n6P|-z$r5J{+xp($P80VE9?');
define('LOGGED_IN_SALT',   'R2mEmt?-3s/2XXn,+`T-|7|FtN?xt~h1Z~s1hs`4-3N(s>H1NG&_!D`|*Hz=[f_:');
define('NONCE_SALT',       '@VXmsoeR?0j;%,A%-w/_I+S#iMRSi2jZ#-]o1ztL7unXJSc0~Fe~ZFw7N}wFi;|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.