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',         '4`{|1?6S(]Z-]&cL^a@%g<%YN&wn Lrwy:]8aZ mH+eb`:tRo-0+a^4o~s^^:{a ');
define('SECURE_AUTH_KEY',  'mxNF39;j.zn%MF!,IY}-c0IE;bn*T}=>Bw87X8B78$OIErh2smQnGEN|QvLD5v:4');
define('LOGGED_IN_KEY',    'haEdmHO=[uA%Bs+OW_`]y$DZI`^X^js>9UNTR?5ZHAH+9t0W.z91Y.uHCx~YUu6E');
define('NONCE_KEY',        'T$2/er?~Y*b|T8;O3+Y(_% R]N0i~Q<A|.r`~:Jlb)SlxGr8ZlZ|^FJB]8,wbq5/');
define('AUTH_SALT',        'dI-XjD$yF:Lu| +>)+)QobZnyNKt*0Ok4ZM;Q ?p24*pFYJAJzRq}(^L#*F3VuPC');
define('SECURE_AUTH_SALT', '@3|LSQ/@%}.5,8Tc{JEJ5Gz0whC8xRNgzZ|88e~nMiu-am=dfBf2[#J`| tYZ}|b');
define('LOGGED_IN_SALT',   ']_fs8Hkj6(?`1QOa.4r2eF|QNM!C>]Z4_,Ir]G sXNJR8bN1RUCp;>gud<?OtFZr');
define('NONCE_SALT',       'M)oT9;^4_S&9&xQ~><mQ.-e7AWqj00K1iZU>g+2M`SoH#EPc([k3Cu|-sn8-+r/m');


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