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

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -