Connect to a Database
6 min
connect to a database introduction connecting a database using the database hub https //www back4app com/database allows you to have access to the source database structure and data from inside your app in back4app this ensures any new updates for schemas and/or data are immediately delivered to your app so everything is up to date at any given moment this is also useful when big (a k a in huge) databases are available, allowing you to use its data without having to fully copy the database to your account prerequisites in order to use or share a database, you will need an app created at back4app see the create new app tutorial https //www back4app com/docs/get started/new parse app to learn how to create an app at back4app 1 find a database to connect go to the database hub list of databases https //www back4app com/database/search and search for any topic that interests you for this tutorial, will be used the database of world continents, countries and cities https //www back4app com/database/back4app/list of all continents countries cities 2 connect click the \<font color="#2166ae">connect\</font> button on the top right corner of the screen the counter on the right side shows how many apps are using that database at the moment the connect dialog will appear then choose to which app, from one of your already existing apps, you want to connect the chosen app in the drop down will have access to the database that you are connecting to then, success message will appear 3 use the data go to the dashboard https //parse dashboard back4app com/apps of the app you connected you will notice the classes from the connected database appear in the database browser in the following formats \<font color="#2166ae">databasename classname\</font> if it is a custom class \<font color="#2166ae">databasename classname\</font> if it is a parse class the difference is that parse classes have two \<font color="#2166ae"> \</font> between the databasename and classname from now on you can query the data of the connected classes on your code, the api console, the graphql console and even make \<font color="#2166ae">relations\</font> and \<font color="#2166ae">pointers\</font> among your app’s classes and the connected ones