python - database host in ipv6 -
i configuring django app run vm instance in google compute engine. database exists in google cloud sql instance ipv6 address have. how can mention ipv6 address database's host in app's settings.py?
the following doesn't work;
databases = { 'default': { 'engine': 'django.db.backends.mysql', 'name': 'name', 'user': 'username', 'password': 'password', 'host': '2001:4860:4864:1:a454:abcd:abcd:abcd', 'port': '' } }
i end error telling :
django.db.utils.operationalerror: (2003, "can't connect mysql server on '2001:4860:4864:1:a454:abcd:abcd:abcd' (101)")
unfortunately managed vm not support ipv6. need use cloudsql ipv4 address.
Comments
Post a Comment