LoginSignup
1
0

More than 5 years have passed since last update.

mariadb で、画像 を load_file で読み込む設定(備忘メモ)

Posted at

mysql で、直接 load_file で画像取り込みができていました。同じことが、mariadb でもできるかを確認しました。自分用の備忘録なんで、はしりがきです。

  • OS : CentOS 7.5 (vagrant bento/centos-7)
  • mariadb : 5.5.60-1.el7_5
  • /etc/my.cnf
    • [mysqld] に、secure_file_priv = ""
  • user に、file_priv = Y を設定
    • 一括 grant では設定されません。mysql/user を直接 update
  • ★★★パーミッションがポイント 格納しているディレクトリが、755
    • ファイルは、744 でオッケー
1
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
1
0