MySQL Forums
Forum List  »  PHP

Re: Change Collation
Posted by: PeterSwiss
Date: February 25, 2006 02:04PM

I had the same problem, just my database is only one day old and not very big.

(1) I changed the FIRST table manually to latin1_mylanguage_ci, using phpmyadmin. That's in TOOLS (WERKZEUGE in my language) of phpmyadmin.

(2) After I exported the whole data database to a .sql.zip file.

(3) I extract .sql and open it in Wordpad MFC.

(4) I notice, in Wordpad, that the first table has a CREATE TABLE ..... DEFAULT CHARACTERSET latin1 COLLATION latin1_mylanguage_ci . The other tables have nothing for collation, meaning default (swedish).

(5) Therefore a search/replace in wordpad, of 'CHARACTERSET latin1' to 'CHARACTERSET latin1 COLLATION latin1_mylanguage_ci ', for every CREATE TABLE except the first one (which is actually the pattern for the method)

(6) Save, close,

(7) delete database, create database, and import from the sql.

(8) for future database, change in my.ini

default-character-set=latin1
default-collation=latin1_mylanguage_ci

or (8A) download and use mysqladministrator, which has in server variables/advance a collation option and writes it, as above, to my.ini .

Options: ReplyQuote


Subject
Written By
Posted
December 14, 2005 01:36PM
Re: Change Collation
February 25, 2006 02:04PM
February 26, 2006 04:10AM
February 26, 2006 04:50AM
February 26, 2006 05:20AM
February 26, 2006 06:09AM
February 26, 2006 06:26AM
March 24, 2007 10:31AM
February 26, 2006 04:12AM
February 27, 2006 01:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.