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

Commit ba741c8

Browse files
author
Takashi Matsuo
committed
Merge pull request #60 from allanchau/patch-2
Update wp-config.php
2 parents 14caf86 + 8332cab commit ba741c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wp-config.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@
1818
define('WP_CACHE', true);
1919

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

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

0 commit comments

Comments
 (0)