MySQLにファイルをインポートする時に一通りつまずく
目標:load dataしたい
https://dev.mysql.com/doc/refman/5.6/ja/load-data.html
・ERROR 1148 (42000): The used command is not allowed with this MySQL version と出た時は
localファイルを許可していないことが原因なのでmysqlへの接続時に--local-infille=1と指定しておけばいい、という説を聞いたができない
・ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement と出た時は
https://qiita.com/bohebohechan/items/207e87786b1e30f60abe
localのMacなのでsecure-file-privを空にしてみた
・そもそもmysqldを叩いた時点でmysqld: Can't change dir to '/data/' (OS errno 2 - No such file or directory) と出る場合
ちゃんとしたファイルを作ってみるか…