3
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 1 year has passed since last update.

「mongo」コマンドが使用できず「command not found」が出た場合の対応策

Last updated at Posted at 2023-01-29

結論

私の場合は、mongoshコマンドでmongoコマンドと同じことができました。

$ mongosh --version
1.6.2

$ mongosh 
Current Mongosh Log ID:	XXXXXXXXXXX
Connecting to:	XXXXXXXXX
Using MongoDB:	6.0.4
Using Mongosh:	1.6.2
・
・
・
test> show dbs
admin         40.00 KiB
config        72.00 KiB
local         72.00 KiB

環境

・Mac book Air M2
・MongoDB
 →下記コマンドでインストール

$ brew install mongodb-community
3
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
3
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?