Solved

Restoring a SQL database

Posted on 2007-12-03
2
1,442 Views
Last Modified: 2012-08-14
I have a fellow co-worker who I have been helping out with some projects.  I have setup and configured a cacti server for them using fedora, mysql, cacti, php5, etc...

It is all working well but now he wants me to use an old DB file he had saved from his last cacti server to restore to the new database.  It is a six meg text file and phpMyAdmin will not let me import anything larger than 2.4 megs.

I know there has to be a way to restore this, can anyone help?  I have very little mysql knowledge.

Thanks
0
Comment
Question by:savone
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 20395557
you should import that from the command line, using the mysql command line tool.

mysql <connection options>   < yourfile.sql
0
 
LVL 23

Author Comment

by:savone
ID: 20395619
Go it... Thanks...

I used mysql -u root -p cacti < cacti_bu.sql

cacti being my database name and cacti_bu.sql being the backup file.

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Clean text to insert in database 9 63
Problem with Simple PHP/mySQL Query 3 67
MS SQL Server - Looking to filter rows based on column value 3 37
mysql disables rename 4 70
Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 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