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',         ',g qJ3XV{Q:QA-fIC_,9+$pcaJW/7!kge:[0,Yk8TkSB0 5,op8>j~))*<5#{`x,');
define('SECURE_AUTH_KEY',  ')Q+]$-3i||r+t!WIhhCsAG]R&TH:U-YF3v,ifM|vx<Al).0^Y?cN#u;%G+%%dl^=');
define('LOGGED_IN_KEY',    '%Lu`v(BXA9Z<+Fft|KahJw6&-GD3N-#f=*nwA,}Vc8W:V-S?)O!,->;`-q-Fo}+z');
define('NONCE_KEY',        'Jg]s~0SoI5-x,|p^ko7RYD ! |cS[;TIg3fU<f^K-~q-0oD&{v7|92qVXqLi-J}%');
define('AUTH_SALT',        '!k|Cd=pWznU:|og[`6SP&sb=q%4;unuZnUw6PDG !nvS-Rbz=`y|.q[EY^*+K5jx');
define('SECURE_AUTH_SALT', 'A!ua:grB}ob~dQh?C.nR;/hM+,n08zmK568<1R7QA>uat5Z&FX5Y,?lF|<B[1ou<');
define('LOGGED_IN_SALT',   '%LI.<S#FE_Q]#iUqz2#w6v7pb{oV%dRs)|t4_lu]Sr`Ga-uq;q@ KyU|?DyyMSv:');
define('NONCE_SALT',       'IH#LlyU3lBd[jg+{W$OLX~W7hQJd-sc IDs#X$E}{i*rvov!raYM36%8VV@lgb}+');


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