-7

The Video size can be in GB's. I am using Longblob but max size that it is allowing is only 2MB.

Deepak Jha
  • 29
  • 1
  • 5
  • 1
    possible duplicate of [PHP change the maximum upload file size](http://stackoverflow.com/questions/2184513/php-change-the-maximum-upload-file-size) – Peon Dec 16 '13 at 09:20
  • 1
    You are aware that MYSQL will use at least 3x the memory when trying to retrieve data of this size right? You're better off saving the video to a file and saving the path in the database. – Ben Fortune Dec 16 '13 at 09:24

1 Answers1

7

I would recommend storing the video-files in a directory instead of a database, then refer them in the database.
Storing files in the database is usually not recommended. Especially not large files.

Jite
  • 5,761
  • 2
  • 23
  • 37