mysql 和mongodb的配置文件在哪裏? iOS mac環境

vi /usr/local/etc/my.cnf 


brew services restart mysql
  • On Linux, a default /etc/mongod.conf configuration file is included when using a package manager to install MongoDB.
  • On Windows, a default <install directory>/bin/mongod.cfg configuration file is included during the installation.
  • On macOS, a default /usr/local/etc/mongod.conf configuration file is included when installing from MongoDB’s official Homebrew tap.

 

數據庫路徑:

mongod --dbpath

:/usr/local/var/mongodb

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章