Skip to content

Instantly share code, notes, and snippets.

@Dan0sz
Last active March 10, 2019 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dan0sz/07a23ee8d79d8e7238cb5ca41c477fc6 to your computer and use it in GitHub Desktop.
Save Dan0sz/07a23ee8d79d8e7238cb5ca41c477fc6 to your computer and use it in GitHub Desktop.
An example wp-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'new_db_name' ); # CHANGE THIS!
/** MySQL database username */
define( 'DB_USER', 'existing_db_username' );
/** MySQL database password */
define( 'DB_PASSWORD', 'existing_db_password' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' ); # Usually localhost
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'existing_db_name' );
/** MySQL database username */
define( 'DB_USER', 'existing_db_username' );
/** MySQL database password */
define( 'DB_PASSWORD', 'existing_db_password' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' ); # Usually localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment