# -*- coding: utf-8 -*-from gluon.tools import Auth
db = DAL('google:sql://trahello:trahello-db/trahello')
INFO 2017-10-13 04:40:50,304 sdk_update_checker.py:231] Checking for updates to the SDK.INFO 2017-10-13 04:40:51,108 sdk_update_checker.py:259] The SDK is up to date.INFO 2017-10-13 04:41:03,088 api_server.py:300] Starting API server at: http://localhost:36575INFO 2017-10-13 04:41:03,146 dispatcher.py:251] Starting module "default" running at: http://127.0.0.1:8080INFO 2017-10-13 04:41:03,147 admin_server.py:116] Starting admin server at: http://localhost:8000
Traceback (most recent call last): File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/applications/trahello/models/modelo.py", line 4, in <module> db = DAL('google:sql://trahello:trahello-db/trahello') File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/packages/dal/pydal/base.py", line 170, in __call__ obj = super(MetaDAL, cls).__call__(*args, **kwargs) File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/packages/dal/pydal/base.py", line 475, in __init__ "Failure to connect, tried %d times:\n%s" % (attempts, tb)RuntimeError: Failure to connect, tried 5 times:Traceback (most recent call last): File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/packages/dal/pydal/base.py", line 455, in __init__ self._adapter = adapter(**kwargs) File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 40, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/packages/dal/pydal/adapters/base.py", line 368, in __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/packages/dal/pydal/adapters/base.py", line 50, in __init__ self._initialize_(do_connect) File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/packages/dal/pydal/adapters/google.py", line 32, in _initialize_ super(GoogleSQL, self)._initialize_(do_connect) File "/home/bernardo/PycharmProjects/w2p_trahello/web2py/gluon/packages/dal/pydal/adapters/mysql.py", line 24, in _initialize_ user = self.credential_decoder(m.group('user'))IndexError: no such group
google:MySQLdb://username:password@/dbname?unix_socket=/cloudsql/projectname:us-central1:dbinstanceid