Solved

mysql import/restore database from large mysqldump file

Posted on 2014-04-06
3
710 Views
Last Modified: 2014-04-10
running latest WAMP and associated components on win7 pro 64bit. mysql version 5.6.12.

I'm creating daily backups using mysqldump, which creates a growing 338,521kb file which zips to 42,507kb.

using phpmyadmin to import this file yields an error that file is too large.

I'm looking for a process/solution to this that I can have an admin execute.
tks
0
Comment
Question by:jsgould
3 Comments
 
LVL 5

Accepted Solution

by:
JurajUQU earned 250 total points
Comment Utility
You can do it via commandline

mysql -u username -p database_name < file.sql
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
Comment Utility
Typically PHP uploads are limited to 8 MB in 'php.ini'.  There is also the issue of the upload timing out if it is too large.  You need to change 'post_max_size', 'upload_max_filesize', and probably 'memory_limit' and 'max_execution_time'.

The alternative is to use the 'mysql' command line to do the import.  Log in as 'root' and use '< backup.sql' to restore everything that was dumped.  http://dev.mysql.com/doc/refman/5.6/en/mysql-batch-commands.html

Also from http://dev.mysql.com/doc/refman/5.6/en/copying-databases.html :
You can also use mysqldump and mysqlimport to transfer the database.
0
 

Author Closing Comment

by:jsgould
Comment Utility
thks
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now