I don’t know this concept is there or not. Can we store the Files and related information in MySQL database ? If the answer is Yes then how ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, but make sure you really want to.
MySQL has a “BLOB” (and related) column type, which can be used for storing arbitrary binary data, much the same way you would store a string (it is just a string of bits instead of a string a characters) value.
The problem is serving files from the database is quite inefficient (the filesystem is much faster), as well as putting unnecessary strain on your DB. So if you can, you are often better of using real files and only storing metadata in the database. Or, at a minimum caching the file to the filesystem.