MySQL xaraktires ????

d.a.glynos glynos at storm.cs.unipi.gr
Wed Jan 4 23:47:55 EET 2006


Prosfata epa8a zhmia apo debian upgrade pou apofasise na parei mysql 4.0
kai na thn kanei 4.1. Programmata pou ekanan store me la8os encoding
ta ellhnika (p.x. Mambo CMS - diathrouse iso8859-7 se latin1 pinakes)
meta to upgrade stamathsan na leitourgoun.

Dokimase to e3hs:

a) Mh kaneis mysqldump (kai an kaneis prose3e na mh grafei oti ta tables
   ths originating vashs htan latin1 prin ta kanei utf gia to dump).
   To na pas kai na pareis to dump kai na grapseis me to xeri oti to
   originating encoding htan 'greek' de 8a se swsei. Exoun ginei hdh
   me la8os tropo utf. Pare loipon filesystem backup ths vashs.

b) Opws eisai me ta binary arxeia ths vashs, tre3e oti scripts sou
   xreiazontai gia na kaneis upgrade th vash "mysql" sthn antistoixh
   gia to target revision (4.1, 5.x, what have you..).

c) Auth th stigmh h mysql einai poly pi8ano oti 8ewrei latin1 ta tables
   ths vashs sou. Vazeis loipon sto configuration tou server:

[client]
default-character-set = greek

[mysqld]
default-character-set = greek
init-connect="SET NAMES greek"

----

To pio shmantiko apo ta parapanw einai to "init-connect" ka8ws leei se
olous tous clients oti ta transactions 8a ginontai se greek encoding
(iso-8859-7). *Kanonika* gia olous tous clients sou (vlepe php scripts)
8a prepei na arxikopoieis to connection me th vash stelnontas panta to
"SET NAMES greek". Sto Mambo p.x. xreiasthke na alla3oume to sugkekrimeno
shmeio ka8ws evaze swnei kai kala ta transactions se latin1.

Mhn anhsuxeis gia to collation, 8a mpei automata swsta (greek, case
insensitive).

Auta gia thn wra, elpizw na se voh8hsoun. Diavase ta sxetika sections
me th glwssa, to collation kai to kolpo me tin binary metafora
apo encoding se encoding, apo to site ths mysql.

Elpizw na mhn akolou8hsei SeQueL :-)

dimitris



On Wed, 4 Jan 2006, Stelios Asmargianakis wrote:
> Η MySQL είναι είδη μεταγλωτισμένη με --with-mysql=/usr/local/mysql όπου και
> το binary installation της MySQL.
>
> Δεν φταίει αυτό σίγουρα μιας και προσπάθησα να κάνω import και σε άλλους 5
> σέρβερς με διαφορετικές ρυθμίσεις αλλά σε όλους με 4.1 έκδοση.
>
> Καμιά άλλη ιδέα;
>
> Ευχαριστώ




More information about the Linux-greek-users mailing list