8000 Merge pull request #1067 from andrewsg/mysite-mysql · johnmanong/python-docs-samples@6b5ec6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b5ec6d

Browse files
authored
Merge pull request GoogleCloudPlatform#1067 from andrewsg/mysite-mysql
Make port explicit in configuration so it is clear how to change to MySQL
2 parents b3559ee + 912729a commit 6b5ec6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

appengine/flexible/django_cloudsql/mysite/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
'NAME': 'polls',
8888
'USER': '<your-database-user>',
8989
'PASSWORD': '<your-database-password>',
90+
# For MySQL, set 'PORT': '3306' instead of the following. Any Cloud
91+
# SQL Proxy instances running locally must also be set to tcp:3306.
92+
'PORT': '5432',
9093
}
9194
}
9295
# In the flexible environment, you connect to CloudSQL using a unix socket.

0 commit comments

Comments
 (0)
0