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

PhpStormでE-R図を吐き出す

0
Posted at

ddlからE-R図を吐き出す方法

前提

JetBrains社のPhpStormを使用している

データベースからddlをダンプ

$ mysqldump -u "username" -p -h "hostname" "dbname" > "outputfilename"

これでoutputfilename.sqlファイルが出力される

PhpStormでE-R図を出力

  1. View → Tool Windows → Databaseを選択
  2. IDE上にツールバーが表示されるので、Data Source Propertiesを選択(DBとスパナのアイコン)
  3. ➕アイコンよりダンプしたddlを選択し名前を付けて、OKボタン
  4. Databaseサイドバーから登録したddlを右クリック
  5. Daiagrams → Show Visualization...を選択

いい感じのE-R図が表示される

イメージファイルを出力

図の上で右クリックし、Export to Image File...

※sshトンネリングについては後ほど

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?