Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Update wp-config.php
Browse files Browse the repository at this point in the history
Makes it a bit clearer that the remote and local db will have different names.
  • Loading branch information
allanchau committed Feb 15, 2016
1 parent 9787ba9 commit 8332cab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@
define('WP_CACHE', true);

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress_db');

if (isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'],'Google App Engine') !== false) {
/** The name of the Cloud SQL database for WordPress */
define('DB_NAME', 'wordpress_db');
/** Live environment Cloud SQL login and SITE_URL info */
/** Note that from App Engine, the password is not required, so leave it blank here */
define('DB_HOST', ':/cloudsql/your-project-id:wordpress');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
} else {
/** The name of the local database for WordPress */
define('DB_NAME', 'wordpress_db');
/** Local environment MySQL login info */
define('DB_HOST', '127.0.0.1');
define('DB_USER', 'root');
Expand Down

0 comments on commit 8332cab

Please sign in to comment.