Solved

mysql import/restore database from large mysqldump file

Posted on 2014-04-06
3
738 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
[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
3 Comments
 
LVL 5

Accepted Solution

by:
JurajUQU earned 250 total points
ID: 39981865
You can do it via commandline

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

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
ID: 39981868
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
ID: 39992259
thks
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
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.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

724 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