0
1

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.

【備忘録】MySQL, PostgreSQLをローカル開発で切り替えるメモ

0
Posted at

前提条件

  • ローカル開発
  • macOs High Serria
  • MAMP(MySQL)
  • HomeBrew(PostgreSQL)
  • データソースでDB切り替えればよくね?
  • 潤沢にメモリがあればそうしたい。。。

使っているDB以外は落としたい

自分が使ってるMAMP。。。プロダクト選んで起動・停止ができない。。。

  • postgres起動・停止方法
$ brew services stop postgresql
$ brew services start postgresql
  • MySQL起動・停止方法
    少々強引だがdatabasefileへのパスを読み込ませなくすることで起動させなくする
$ mv /Applications/MAMP/db/mysql56 /Applications/MAMP/db/DESABLE_mysql56

これでとりま大丈夫。

そんなにローカル開発は頻繁に行わないので必要に応じて上記を切り替える感じの運用でカバーすることにした

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?