1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mongoDB AtlasにCLIで接続するまで

Last updated at Posted at 2019-11-19

手順

  1. CLIのインストール
  2. MongoDB Userの追加
  3. IPホワイトリストの編集
  4. 疎通確認

mongo CLIのインストール

brew tap mongodb/brew
brew install mongodb-community

参考: https://github.com/mongodb/homebrew-brew

MongoDB Userの追加

プロジェクトのメニューDatabase Accessからユーザーを追加します。

image.png

IPホワイトリストの編集

アクセス可能なIPアドレスを追加します。

image.png

疎通確認

Clusters > Connectから接続先のホスト名を取得し...

mongo "mongodb+srv://${HOST}"  --username ${USERNAME}

これで接続可能なはずです。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?