How to store .txt files MySQL database?

前端 未结 4 2059
清歌不尽
清歌不尽 2021-01-02 18:36

Can I store data files (e.g. txt files) to the MySql server? If I can, how to store them?

4条回答
  •  甜味超标
    2021-01-02 19:19

    Yes you can, but you would probably be better off storing them on the file system and storing a path to the file in the DB.

    There are a few SO Posts that discuss this:

    • Storing Images in DB - Yea or Nay?
    • Storing a file in a database as opposed to the file system?

提交回复
热议问题