Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > MySQL > Problem with innodb files

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-03, 02:20
prasanthik83 prasanthik83 is offline
Registered User
 
Join Date: Dec 2003
Posts: 20
Problem with innodb files

Hi !
I am using mysql 4.x . How to take the backup of innodb files. I got the backup for MYISAM type files. I have taken .FRM , .MYI, .MYD files for taking back up of MYISAM type tables.

Thanks in advance
Regards,
Prasanthi
Reply With Quote
  #2 (permalink)  
Old 12-09-03, 09:40
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Re: Problem with innodb files

Quote:
Originally posted by prasanthik83
Hi !
I am using mysql 4.x . How to take the backup of innodb files. I got the backup for MYISAM type files. I have taken .FRM , .MYI, .MYD files for taking back up of MYISAM type tables.

Thanks in advance
Regards,
Prasanthi



There many free solution and one commercial software

You can use MySqldump to create text files for your data

You can copie your table space

You can use replication with an other server acting as a backup server
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #3 (permalink)  
Old 12-10-03, 03:22
prasanthik83 prasanthik83 is offline
Registered User
 
Join Date: Dec 2003
Posts: 20
Hai !
Thanks for ur reply. I took the backup using mysqldump into a text file. But how to import the file in to the destination database.

Thanks in advance
Regards
Prasanthi
Reply With Quote
  #4 (permalink)  
Old 12-10-03, 05:53
pingu8613 pingu8613 is offline
Registered User
 
Join Date: Dec 2003
Location: Sweden
Posts: 4
Quote:
Originally posted by prasanthik83
Hai !
Thanks for ur reply. I took the backup using mysqldump into a text file. But how to import the file in to the destination database.

Thanks in advance
Regards
Prasanthi



I guess you colud use LOAD DATA INFILE for that if you take out the part in the dump where the database is created. To run the dump (and create the database) run
mysql database < backup-file.sql. /maria

http://www.mysql.com/doc/en/mysqlimport.html
Reply With Quote
  #5 (permalink)  
Old 12-10-03, 06:28
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Quote:
Originally posted by pingu8613
I guess you colud use LOAD DATA INFILE for that if you take out the part in the dump where the database is created. To run the dump (and create the database) run
mysql database < backup-file.sql. /maria

http://www.mysql.com/doc/en/mysqlimport.html


Check that

http://www.lasso-developpeur.net/us/...tab=db&lang=us
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #6 (permalink)  
Old 12-11-03, 01:16
prasanthik83 prasanthik83 is offline
Registered User
 
Join Date: Dec 2003
Posts: 20
Hi !
Thanks for ur reply. I used "mysql dbfirst < backup.sql " for importing data into the database. But it is giving the error like

Can't create table '.dbfirst/Sys_Column.frm' (errno :150)

I think this might be b'cos of referential integrity. While creating tables the base table must be created first and next the detailed table. But in the backup.sql file it is not in that order.
How to solve this problem.Please tell me

Regards
Prasanthi
Reply With Quote
  #7 (permalink)  
Old 12-11-03, 07:37
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
It seem that you are using the default mysqldump option
That create table and then insert data.

You should edit the script to have DDL script in one part and insert statements in other part
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #8 (permalink)  
Old 12-11-03, 08:06
prasanthik83 prasanthik83 is offline
Registered User
 
Join Date: Dec 2003
Posts: 20
Hai!

Thanks for ur reply.But i didn't understand the solution clearly. What do u mean by " edit the script to have DDL script in one part and insert statements in other part ". Explain that statement clearly.

Waiting for ur quick reply.

Regards
Prasanthi
Reply With Quote
  #9 (permalink)  
Old 01-09-04, 06:48
chrisranjana chrisranjana is offline
Registered User
 
Join Date: May 2002
Location: chennai , tamil nadu , India
Posts: 17
mysql innodb backup and restore..mysqldumpa and import

Hi Prasanthi

take the dump as you would normally do using mysqldump

open the dump file put this statement at the beginning

SET FOREIGN_KEY_CHECKS=0;

of the sql dump text file

and import the same file as you would nomally import an sql dump file
__________________
Chris, Director, Chrisranjana.com
Web Development company
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On