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',         'uM|!+d_|o#zA/2J2}{ /oIm#6J_NhNTslS-gSZ-KSQmy]L(vaII-TkUQ]+!JF%+k');
define('SECURE_AUTH_KEY',  'jY|73U57Heh>1pWk8^`r6)oyTbBb$w$*ruD-iz#o}.^{ENbIAU];YK{24`>MQdlY');
define('LOGGED_IN_KEY',    'G-LSz|r;5e.7E+~}xK|Q>ypi)G_-=474Zhl<&5oCsfrz %141-YE;p}*{TOv}+_7');
define('NONCE_KEY',        '=:G3w>j4OqV9-WI-yt|71|rn+qV5ii+ixDQ%-ybfZLv5q+B~Uto0dOEDDKUFP$oO');
define('AUTH_SALT',        'YLNqs4z;BT[-2]zOLabWO=`2``V~Y!og$H6Quc||!~jfG,=XK+`_>3_oj0ks}Q~g');
define('SECURE_AUTH_SALT', 'mStYogP0tCMKeq|a(?J/]&c Cf23%>f$`aTy1+sgZ*Z^yy8:ls5fCNwRmTw#f}<9');
define('LOGGED_IN_SALT',   '3)l[nj>,CK20]&xu%fIBvRH`T:JA#8v;qf!}RoY06q26?pD[`67Nr/FEI+8dA9sn');
define('NONCE_SALT',       'z|_w{8Nfoj;F]mVai1}~)W+hN5c$^h]^@FZzd+^|TP.>Fb7|Zk6%6s.y68szm;zg');


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