76
68

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.

コマンドラインからファイルに記述したSQL文の実行

Last updated at Posted at 2014-01-29
コマンドラインもしくはshell内に記述
// hoge.sql内のSQLを実行。出力結果をout.txtに出力。
mysql -u [user] -p[password] [database name] < hoge.sql >out.txt

※-pの後にスペース入らないことに注意

76
68
2

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
76
68

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?