LoginSignup
43

More than 5 years have passed since last update.

posted at

updated at

mysql コマンドオプション

-u

ユーザ名指定

-p

パスワード指定

-D

データベース名指定

-h

ホスト名の値を指定

-e

コマンドラインから直接 sql を実行

mysql -uユーザ名 -p -Dデータベース名 -hホスト -e" select 文とか" > ファイル名.tsv

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
What you can do with signing up
43