0
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 3 years have passed since last update.

herokuでデプロイをしたアプリのDBをsequel proで確認する方法

Posted at

はじめに

本番環境下(今回はherokuでデプロイ)のDBの内容の確認方法を習得したので、忘れる前にメモとして残します。

Sequel ProでDB内を確認する方法

1.ターミナルにて、下記を実行
 ※()内は確認したいアプリ名を記述

heroku config --app (application_name)

2.下記の内容が出力されるので確認

CLEARDB_DATABASE_URL: mysql://(ユーザー名):(パスワード)@(ホスト)/(データベース名)?reconnect=true

3.Sequel Proを開く

4.標準を選択

5.2をSequel Proの項目に当てはめる(下記参照※パスワードも2で確認したパスワードを記述)
 ※名前はherokuなど自由な名前でOK。ポートも記載なしで確認できる。

6.接続をクリック
0
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
0
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?