?
Solved

mysql import/restore database from large mysqldump file

Posted on 2014-04-06
3
Medium Priority
?
739 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 750 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 750 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

800 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