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!
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. THNX RAMLAK..
HEY RAMLAK I HAVE A LOT OF DO
View Tutorial By: Vinod at 2009-01-02 22:04:40
2. can't build the 2nd code in netbeans,here is the
View Tutorial By: arshavin at 2010-04-14 23:19:33
3. hi,
my problem is.......
i use vb.ne
View Tutorial By: Anirban at 2009-10-25 10:15:13
4. my question is the same of sajjad.what about (!iss
View Tutorial By: hossain at 2012-04-26 04:28:56
5. I've tried this code but i am gettting error at li
View Tutorial By: Iqra at 2012-12-13 10:43:12
6. This is probably a good java tutorial but it made
View Tutorial By: lol at 2012-09-15 21:20:09
7. Thanks for the simple tutorial on hashmaps. I am n
View Tutorial By: ipkwena at 2013-08-19 09:02:49
8. Hi, still having problem with 'Permission denied'.
View Tutorial By: Dorjoo at 2012-05-18 19:00:22
9. the website is good and nice helps a lot add more
View Tutorial By: wkkjnj at 2010-07-20 04:34:13
10. Nice example to understand what does the string T
View Tutorial By: vikash from india at 2011-06-23 06:39:03