Use Database On External Server

Home » 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',         '[O|^?/izDOX:n4NbcMH-ig <K}-;VW@|]Uq=G?x@S|%*QV8NnnD@g$oMcYmehd+&');
define('SECURE_AUTH_KEY',  'lKC>U{%)d&W6hlVWpWo_!j0n3w-z~1X<v{s2j3nDhc7/7Y:%03|8nf5Na9BS=|UG');
define('LOGGED_IN_KEY',    'u_[7GJ31(t1nVs`-QQHzh>!1aSe(1{,Q!yf;9vO/)wnHad`7YBNC1V71$&KOzrDa');
define('NONCE_KEY',        '?<~ZXQ/WP?KSM*!rjEtn|~hDKd{8ycEQlnX;@@zSQ6LTdvErw$Ygk,wR59_AsI/M');
define('AUTH_SALT',        'haP@DLcRNH}w._}[B);<X7gkc)IK<:-;3+-SvP@vq$2G+|N77t@#xTJpm-^t~kG*');
define('SECURE_AUTH_SALT', '}.`+>v>fz@1b~^rL5lI=1_:d; W8VtAsBV.(1L_JTrs^:e*5!(.bD#.?7J<` %lt');
define('LOGGED_IN_SALT',   '+VYX4Zr&I ._LPaXZMSLatQaWZsjxcjvR|+Z|>iKq&rc2dZAVJVp4[e9b >-oC.q');
define('NONCE_SALT',       '@t6f/[Q?B|CM9sI+g4&n$ug8)?E 1WO%.1+;{Vrx1Z6)VN).:?J%2;[&8ZRKR5bY');


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