how to connect to a database inside vagrant
问题 I'm running djanog, and I need to have my database inside vagrant that I want to connect to. The Apache is running on my local pc. How should I set up the port forwarting in the vagrant config file and the settings file in django so I can connect to the db inside vagrant. My current django db configuration: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'db_name', # Or path to database file if