Solved

PHPMYADMIN Exporting DB and page goes blank after 40 seconds

Posted on 2013-06-23
10
520 Views
Last Modified: 2013-06-24
Hiya All

I have MAMP PRO running on my local machine and I am stuck trying to export a DB.

The DB does have one large table which i think could be the cause of the issue/ timeout.

When i try to export a database via PHPMYADMIN I get a blank page after about 40 seconds.

Any Ideas

Ww
0
Comment
Question by:willa666
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39270030
Can you please tell us a little more?  Maybe post the CREATE TABLE scripts and show us the counts of rows in the tables?  You may be able to control the "timeout values" with configuration settings.
0
 
LVL 1

Author Comment

by:willa666
ID: 39270074
The table has 45 columns and there are 45,000 rows. the table is a raw import from a CSV file.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39270084
OK, that's 2,025,000 data points.  How big is the table in bytes?
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 5

Expert Comment

by:sscotti
ID: 39270274
Do you get an error message or see an error message in the logs.  If you are running MAMP you can view the MySQL logs and PHP logs from the main menu.

Also, you might be exceeding the memory resource limit that you have configured for PHP.  The PHP.ini file by default I think has:

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60      ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M      ; Maximum amount of memory a script may consume (8MB)

You might try increasing that and checking the other configuration parameters for memory in the my.cnf file, also configurable from within MAMP.  With a file that large you are probably exceeding some of the default limits.
0
 
LVL 7

Expert Comment

by:Robert Saylor
ID: 39270992
have you tried from SSH? mysqldump
0
 
LVL 1

Author Comment

by:willa666
ID: 39271027
Ray_Paseur
Space usage
Data      46.6      MiB
Index      1.5      MiB
Total      48.1      MiB

sscotti
I dont see any error in the console logs :(

here is the PHP.ini setting i tried with the same issue.
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 120     ; Maximum execution time of each script, in seconds
max_input_time = 120      ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M      ; Maximum amount of memory a script may consume (8MB)


rsaylor
I have not tried that yet and only really want to do this as a last resort :)
0
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39271101
You might raise the memory limit to 512MB and try again.  It's probably not the time settings -- those would not cause a failure at 45 seconds.

Make sure you have error_reporting(E_ALL), and an error log file set up (or display the errors to the browser).
0
 
LVL 1

Author Comment

by:willa666
ID: 39271613
Ray_Paseur - raisign teh memory_limit seems to have worked!

Cheers All!
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39271656
Great!  Thanks for the points, ~Ray
0
 
LVL 5

Expert Comment

by:sscotti
ID: 39273462
Thanks for the assist.  :)
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question