Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 403df4a

Browse files
author
remi Taylor
authored
Merge pull request GoogleCloudPlatform#80 from GoogleCloudPlatform/update-cloudsqlv2
Update placeholders for MySQL -- Cloud SQL v2
2 parents b6b45c0 + 4de97ec commit 403df4a

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

2-cloud-sql/config/database.example.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ mysql_settings: &mysql_settings
22
adapter: mysql2
33
encoding: utf8
44
pool: 5
5-
username: your-mysql-user-here
6-
password: your-mysql-password-here
7-
database: your-mysql-database-here
8-
socket: your-cloud-sql-socket-path
5+
username: [MYSQL_USER]
6+
password: [MYSQL_PASS]
7+
database: [MYSQL_DATABASE]
8+
socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
99

1010
development:
1111
<<: *mysql_settings

2-cloud-sql/spec/spec_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
db_file = File.expand_path("../../config/database.yml", __FILE__)
3636
db_config = File.read(db_file)
3737
db_values = {
38-
"your-mysql-user-here" => "MYSQL_USER",
39-
"your-mysql-password-here" => "MYSQL_PASSWORD",
40-
"your-mysql-IPv4-address-here" => "MYSQL_HOST",
41-
"your-mysql-database-here" => "MYSQL_DBNAME"
38+
"[MYSQL_USER]" => "MYSQL_USER",
39+
"[MYSQL_PASS]" => "MYSQL_PASSWORD",
40+
"[MYSQL_DATABASE]" => "MYSQL_DBNAME",
41+
"[YOUR_INSTANCE_CONNECTION_NAME]" => "MYSQL_SOCKET"
4242
}
4343

4444
db_values.each { |key, envkey|

3-cloud-storage/config/database.example.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ default: &default
44
# adapter: mysql2
55
# encoding: utf8
66
# pool: 5
7-
# username: your-mysql-user-here
8-
# password: your-mysql-password-here
9-
# host: your-mysql-IPv4-address-here
10-
# database: your-mysql-database-here
7+
# username: [MYSQL_USER]
8+
# password: [MYSQL_PASS]
9+
# database: [MYSQL_DATABASE]
10+
# socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
1111

1212
# Google Cloud Datastore Sample Database Configuration
1313
# ----------------------------------------------------

4-auth/config/database.example.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ default: &default
44
# adapter: mysql2
55
# encoding: utf8
66
# pool: 5
7-
# username: your-mysql-user-here
8-
# password: your-mysql-password-here
9-
# host: your-mysql-IPv4-address-here
10-
# database: your-mysql-database-here
7+
# username: [MYSQL_USER]
8+
# password: [MYSQL_PASS]
9+
# database: [MYSQL_DATABASE]
10+
# socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
1111

1212
# Google Cloud Datastore Sample Database Configuration
1313
# ----------------------------------------------------

5-logging/config/database.example.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ default: &default
44
# adapter: mysql2
55
# encoding: utf8
66
# pool: 5
7-
# username: your-mysql-user-here
8-
# password: your-mysql-password-here
9-
# host: your-mysql-IPv4-address-here
10-
# database: your-mysql-database-here
7+
# username: [MYSQL_USER]
8+
# password: [MYSQL_PASS]
9+
# database: [MYSQL_DATABASE]
10+
# socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
1111

1212
# Google Cloud Datastore Sample Database Configuration
1313
# ----------------------------------------------------

6-task-queueing/config/database.example.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ default: &default
44
# adapter: mysql2
55
# encoding: utf8
66
# pool: 5
7-
# username: your-mysql-user-here
8-
# password: your-mysql-password-here
9-
# host: your-mysql-IPv4-address-here
10-
# database: your-mysql-database-here
7+
# username: [MYSQL_USER]
8+
# password: [MYSQL_PASS]
9+
# database: [MYSQL_DATABASE]
10+
# socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
1111

1212
# Google Cloud Datastore Sample Database Configuration
1313
# ----------------------------------------------------

0 commit comments

Comments
 (0)