473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to import large database?

I saved my website databgase to my home computer. I am setting up a local
version of the site, and need to import the database. I have mysql and
everything set up. But when I try to run the sql script that I exported from
my site's control panel, I get an out of memory error. What is the proper
way to import this database? Do I need to increase some memory setting?

-brian
Jul 20 '05 #1
2 9182
how are you trying to import it? is it mysql that complains of errors?

in theory, to export you would do something like:

mysqldump -uroot -ppassword --opt db1 > db1.sql

and to import you would do something like:

mysql -uroot -ppassword db1 < db1.sql

from the command line.

"Brian Huether" <bh********@guitarSP-dreams.AMcom> wrote in message
news:S4*******************@sam.nntpserver.com...
I saved my website databgase to my home computer. I am setting up a local
version of the site, and need to import the database. I have mysql and
everything set up. But when I try to run the sql script that I exported
from my site's control panel, I get an out of memory error. What is the
proper way to import this database? Do I need to increase some memory
setting?

-brian

Jul 20 '05 #2
"Jamie Burns2" wrote:
how are you trying to import it? is it mysql that complains of errors?
in theory, to export you would do something like:

mysqldump -uroot -ppassword --opt db1 > db1.sql

and to import you would do something like:

mysql -uroot -ppassword db1 < db1.sql

from the command line.

"Brian Huether" <bh********@guitarSP-dreams.AMcom> wrote in
message
news:S4*******************@sam.nntpserver.com...
I saved my website databgase to my home computer. I am setting up

a local
version of the site, and need to import the database. I have mysql

and
everything set up. But when I try to run the sql script that I

exported
from my site’s control panel, I get an out of memory error.

What is the
proper way to import this database? Do I need to increase some

memory
setting?

-brian
</font>


The above is the best way, but there is also a brute force way, if all
else fails. Zip the mysql data directory where your db resides, and
unzip it into the new location. Make sure both dbs are offline when
you this. 99% of the time it works just like that.. sometimes you
have to repair some of the tables to make it all work.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/mySQL-import...ict165881.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=564042
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Doug Baroter | last post by:
Hi, One of my clients has the following situation. They use Access DB for data update etc. some business functions while they also want to view the Access data quickly and more efficiently in...
20
by: Steve Jorgensen | last post by:
Hi all, I've just finished almost all of what has turned out to be a real bear of a project. It has to import data from a monthly spreadsheet export from another program, and convert that into...
10
by: Avi | last post by:
Hi I need to read in a large set of text files (9GB+ each) into a database table based on fixed width lengths. There are several ways to complete this, but I am wondering if anyone has...
3
by: Tony | last post by:
With respect to the questions below, please assume that our database(s) and all text files are shared on a network file server. When opening a shared MDB, what is the effect of its accessing data...
3
by: ninrulz | last post by:
I will try to explain my situation. I know that it is hard to offers solutions without fully understanding what people would like to achieve. I receive 2 csv files every month. The csv files...
0
by: Diddley | last post by:
I want to import a large number of Excel spreadsheets that are 'supposed' to have the same number of columns representaing the same type of data into tables in an Access database. The UNC path and...
1
by: Child of His | last post by:
I have been through every trick I know, or has been suggested. I have a one to two million line fixed field database in text format. I want to bring it into Access 97. When I use the external...
14
by: mfrsousa | last post by:
hi there, i have a huge large text file (350.000 lines) that i want to import to a MS Acccess Database, of course i don't want to use Access, but do it with C#. i already have tried the...
7
by: bobdurie | last post by:
I'm trying to run an import of some data that has unix style carriage returns throughout (ie, 0x0A, or \n). When i use osql to import the data, it shows up in the SQL Server 2005 database as 0x0D...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.