@@ -6,13 +6,98 @@ Connect to Your MongoDB Deployment
6
6
7
7
.. default-domain:: mongodb
8
8
9
+ .. facet::
10
+ :name: genre
11
+ :values: tutorial
12
+
13
+ .. meta::
14
+ :description: Connect to your MongoDB deployment with the MongoDB for IntelliJ Plugin.
15
+
9
16
.. contents:: On this page
10
17
:local:
11
18
:backlinks: none
12
19
:depth: 1
13
20
:class: singlecol
14
21
15
- Content on this page will be addressed in DOCSP-44809.
22
+ This task page shows you how to connect to your MongoDB deployment using
23
+ the {+intellij-full+}.
24
+
25
+ .. note:: MongoDB Atlas
26
+
27
+ If you need to create a MongoDB host, consider using
28
+ `MongoDB Atlas <https://www.mongodb.com/cloud/atlas>`__.
29
+ Atlas is a cloud-hosted database-as-a-service which requires no
30
+ installation, offers a free tier to get started, and provides a
31
+ copyable URI to easily connect the {+intellij-short+} to your
32
+ deployment.
33
+
34
+ Prerequisites
35
+ -------------
36
+
37
+ Ensure that an instance of MongoDB is running and the {+intellij-short+}
38
+ is installed.
39
+
40
+ Steps
41
+ -----
42
+
43
+ .. procedure::
44
+ :style: normal
45
+
46
+ .. step:: Show the Database tab.
47
+
48
+ To show the :guilabel:`Database` tab, click the Database Explorer
49
+ icon on the far-right menu bar of IntelliJ.
50
+
51
+ .. image:: /images/connect/intellij-database-explorer.png
52
+ :alt: Click the Database Explorer icon.
53
+
54
+ .. step:: Select MongoDB as the data source.
55
+
56
+ Click the :guilabel:`+` icon, then click :guilabel:`Data Source`
57
+ and select :guilabel:`MongoDB` from the drop-down menu.
58
+
59
+ .. image:: /images/connect/intellij-select-data-source.png
60
+ :alt: Click the + button > Data Source > MongoDB.
61
+
62
+ .. step:: Enter your connection string.
63
+
64
+ Paste your :manual:`connection string
65
+ </reference/connection-string/>` directly in the
66
+ :guilabel:`URL` field near the bottom of the
67
+ :guilabel:`Data Sources and Drivers` tab.
68
+
69
+ Ensure that your connection string specifies the port that your
70
+ instance is running on.
71
+
72
+ Click OK.
73
+
74
+ .. step:: (*Optional*) Select databases to load.
75
+
76
+ You should see the connected MongoDB data source in Database
77
+ Explorer.
78
+
79
+ You can load as many databases as you’d like by clicking on
80
+ ``1 of 11`` text as shown below:
81
+
82
+ .. image:: /images/connect/intellij-select-databases-to-load.png
83
+ :alt: Select the databases to load.
84
+
85
+ .. step:: (*Optional*) Launch Playgrounds.
86
+
87
+ To launch the Playgrounds, click the highlighted button in
88
+ Database Explorer.
89
+
90
+ .. image:: /images/connect/intellij-launch-playgrounds.png
91
+ :alt: To launch the Playgrounds, click the highlighted button in Database Explorer.
92
+
93
+
94
+ Next Steps
95
+ ----------
96
+
97
+ - :ref:`<intellij-type-validation>`
98
+ - :ref:`<intellij-autocomplete>`
99
+ - :ref:`<intellij-index-warning>`
100
+
16
101
17
102
.. toctree::
18
103
:titlesonly:
0 commit comments