Comment on Tutorial - Handling BLOB in PHP and MySQL By Andi, Stig and Derick
Comment Added by : Tony Gingrich
Comment Added at : 2011-10-23 21:22:31
Comment on Tutorial : Handling BLOB in PHP and MySQL By Andi, Stig and Derick
I'm working on an intranet site/web application. We have a table for file storage (MySQL 4.1.22/InnoDB engine), with a field defined as LONGBLOB. MySQL specifies this type to be able to handle just over 4GB. While we will never be pushing this much data to a record, we do have a few instances of BLOBS up to 32MB, which is too much for the MEDIUMBLOB type.
However, I am using the mysql_query() method of inserting. This works well for data as long as 10MB, but the call hangs (no exceptions, timeouts, etc...just simply hangs as if in an infinite loop) for several hours. I have temporarily unlimited all PHP timeouts, as well as insured the max_allowed_packet on our MySQL instance is at 200MB (a little overkill, just to be sure). I even went so far as to set the net_write_timeout value to 120 seconds and the net_read_timeout to 240 seconds. Both the web and db servers are on our LAN (100Mb), so there is optimal communication between the 2 machines.
Are there any other settings I should be aware of to check? Also, is it possible that this is a limitation of the mysql_query() method, and that I need to switch up and use the mysqli interface?
I'm really at a loss here. My background comes from MS SQL, so I am still learning my way around MySQL.
Thanks in advance!
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
1. very easy to understand ... a quite a good example
View Tutorial By: Dinesh at 2012-09-22 18:19:45
2. nice tutorial,but if provided with the complete ex
View Tutorial By: Prasant Kumar Sahu at 2013-01-07 13:17:20
3. You can not overload the private method in Test cl
View Tutorial By: Gaurav at 2013-07-28 15:53:20
4. man i really havnt got your last example. how it g
View Tutorial By: rakesh at 2013-02-21 08:20:29
6. Hello, I'm using the above codes for my project. B
View Tutorial By: Sandeep Dattaraju at 2011-02-26 11:01:48
7. Hello guys, I'm developing java program to send SM
View Tutorial By: Rania at 2010-09-08 09:04:47