LoginSignup
76
68

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