LOAD_FILE returns NULL

前端 未结 4 739
忘了有多久
忘了有多久 2020-12-19 14:41

I am trying to insert an image into my MySQL server. I have done some research and it looks like the best way to do that is through LOAD_FILE(). However,

4条回答
  •  北海茫月
    2020-12-19 15:18

    Here is my command on windows 7:

    select load_file("C:/Program Files (x86)/MySQL/MySQL Workbench CE 6.0.7/images/hieuImages/a.jpg");
    

    And it worked! You maybe try to copy your images into that directory and select again in mysql.

提交回复
热议问题