Archive | September, 2006

Migrating UTF8 data from MySQL 5.0 to 4.x (with latin charset)

27 Sep

Some of old PHP application use ANSI SQL to create table and insert data. So when I use those application with UTF8 content in MySQL 5.0, the default character-set of those table is latin1. The problems come when I want to move data to an older MySQL, the encoded content goes wrong.

So this is the solution:

mysqldump -u username –opt –default-character-set=latin1 –skip-set-charset –skip-tz-utc –skip-comments –single-transaction %1 %2 %3 %4 %5

This post will be updated later with full description.

Thử làm cái test coi sao

7 Sep
You scored as Neo, the “One”. Neo is the computer hacker-turned-Messiah of the Matrix. He leads a small group of human rebels against the technology that controls them. Neo doubts his ability to lead but doesn’t want to disappoint his friends. His goal is for a world where all men know the Truth and are free from the bonds of the Matrix.

Neo, the “One”
75%
The Amazing Spider-Man
58%
Maximus
54%
The Terminator
54%
Lara Croft
46%
Indiana Jones
46%
Batman, the Dark Knight
38%
Captain Jack Sparrow
33%
El Zorro
29%
William Wallace
29%
James Bond, Agent 007
21%

Which Action Hero Would You Be? v. 2.0
created with QuizFarm.com