Click here to get back home

mysql backup and restore for 4.1.x

 HomeNewsGroups | Search

mailing.database.mysql - MySQL database issues discussed in this best MySQL group in USENET 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
mysql backup and restore for 4.1.x newman 04-16-2006
Posted by newman on April 16, 2006, 12:22 am
Please log in for more thread options

Dear all,

I have mysql 4.1.11 on my current server, i need my database restore
another
server.. (another server mysql version is 4.1.11 same.)

And now... I just created new my database to new server following
command:

CREATE DATABASE dbname DEFAULT CHARACTER SET latin5 COLLATE
latin5_turkish_ci;

because our database and tables uses latin5 and turkish_ci collation.

How can i get correct backup and restore for this character sets?
example;

show/hide quoted text

and restore;

mysql -uUSER -pDBNAME < /path/backup.sql

is this correct for me?

OR

show/hide quoted text
/path/backup.sql

and restore;

mysql --default-character-set=latin5 -uUSER -pDBNAME <
/path/backup.sql

some peoples suggest me --default-character-set= variable for mysql
4.1.x
backups and restore, is this correct? also if we backup database
--default-character-set option, restore command is same option will
need to
use?

Which method is good for me? if someone can help me for this, i'm
pretty
happy.

Thanks for all, and sorry for very bad english.


--
newman
------------------------------------------------------------------------
newman's Profile: http://www.dbtalk.net/m168
View this thread: http://www.dbtalk.net/t299922


Similar ThreadsPosted
Quality of Backup and Restore June 2, 2006, 3:38 am
backup and restore of var lib mysq February 12, 2009, 2:12 pm
Newbie seeks help using backup/restore August 11, 2006, 11:59 am
cannot restore 3.23.58 db to MySQL 4.0.22-debug November 29, 2005, 3:42 pm
Database Restore / MySQL 4.1 -- InnoDB May 1, 2006, 12:11 pm
ERROR:Using the mysql client on freebsd to restore a mysqldump?? August 15, 2005, 2:03 am
Mysql Restore fails with strange error message June 10, 2006, 4:41 pm
Mysql Backup Connection in PHP April 12, 2006, 12:26 pm
MySQL backup tools September 26, 2006, 11:19 am
mySQL backup with SQLyog May 18, 2007, 5:14 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy