List:General Discussion« Previous MessageNext Message »
From:Alexandre Quessy Date:September 7 2005 3:45pm
Subject:Re: How concerned should I be about Collation?
View as plain text  
Thank you guys so much !!!
I found the answer to all my problems regarding charsets with MySQL  
dumps.
Here are the code lines:


CREATE TABLE `foo` (
   `id` bigint(20) unsigned NOT NULL auto_increment,
   `foo` varchar(255) NOT NULL default '',
   PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

and then :

mysqldump -u {{username}} -p{{password}} {{database}} --default- 
character-set=latin1 > file.sql



Thanks !!!

Alexandre Quessy
http://www.sourcelibre.com/
http://www.flikstudio.com/folio/




Le 05-09-06 à 04:32, Gleb Paharenko a écrit :

> Hello.
>
> There is no statement which is able to change the collation
> and character set information in all tables at once. For single
> table use an ALTER TABLE statement. See:
>   http://dev.mysql.com/doc/mysql/en/alter-table.html


Thread
How concerned should I be about Collation?Dave6 Sep
  • Re: How concerned should I be about Collation?Gleb Paharenko6 Sep
    • Re: How concerned should I be about Collation?Alexandre Quessy7 Sep