View previous topic :: View next topic |
Author |
Message |
SnowBear l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/675339403442462ac7a0d6.jpg)
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Fri Dec 09, 2005 2:39 pm Post subject: [mysql] ou est l'iso... |
|
|
Bonjour,
j'ai un problème qui est assez agaçant avec mysql.
En effet lorsque je veux créer des tables... c'est toujours en UTF-8 et impossible de changer pour le mettre en fr.
etc/make.conf wrote: | CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="gtk -gnome qt -kde dvd dvdread alsa cdr XvMCNVIDIA java mozilla browserplugin win32codecs divx4linux apache2 mysql pam ssl xml xml2 nls samba kerberos acl cups ldap pam readline oav usb lm_sensors"
ALSA_CARDS="emu10k1"
LINGUAS="fr fr_FR"
PORTDIR_OVERLAY=/usr/local/portage
PORTAGE_TMPDIR="/var/tmp"
PORTDIR=/usr/portage
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORT_LOGDIR="/var/log/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
RSYNC_RETIRES="5"
RSYNC_TIMEOUT="120"
PORTAGE_NICENESS="-3"
AUTOCLEAN="yes"
CCACHE_SIZE="5G"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/" |
locale wrote: | LANG=fr_FR@euro
LC_CTYPE="fr_FR@euro"
LC_NUMERIC="fr_FR@euro"
LC_TIME="fr_FR@euro"
LC_COLLATE="fr_FR@euro"
LC_MONETARY="fr_FR@euro"
LC_MESSAGES="fr_FR@euro"
LC_PAPER="fr_FR@euro"
LC_NAME="fr_FR@euro"
LC_ADDRESS="fr_FR@euro"
LC_TELEPHONE="fr_FR@euro"
LC_MEASUREMENT="fr_FR@euro"
LC_IDENTIFICATION="fr_FR@euro"
LC_ALL=fr_FR@euro |
Premièrement : est ce que je vous ai fourni assez d'informations ?
Enfin : comment faire pour avoir l'iso sous mysql ?
Cordialement. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
_droop_ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 30 May 2004 Posts: 957
|
Posted: Fri Dec 09, 2005 3:39 pm Post subject: |
|
|
Bonjour,
A priori, ton problème n'est pas vraiment lié à gentoo, pour modifier la gestion des caractères de mysql, je te conseille de lire le chapitre 10 de la documentation : http://dev.mysql.com/doc/.
Bonne journée. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bong Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/543723108418195fccf0db.jpg)
Joined: 26 Oct 2004 Posts: 276 Location: Brest / Metz
|
Posted: Fri Dec 09, 2005 5:33 pm Post subject: |
|
|
lorsque tu cree une table, tu peux forcer son encodage de cette maniere:
Code: | CREATE TABLE patient
(
secu BIGINT(15) NOT NULL PRIMARY KEY,
nom VARCHAR(40) NOT NULL,
prenom VARCHAR(40) NOT NULL,
supprime CHAR(1) NOT NULL DEFAULT 'f',
commentaires TEXT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
(j'ai sorti ca d'un projet sur lequel je travaille en ce moment..) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
takhisis_astrafall Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 Apr 2004 Posts: 127 Location: rennes
|
Posted: Wed Dec 14, 2005 9:35 am Post subject: |
|
|
ou alors tu recompile mysql avec |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bong Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/543723108418195fccf0db.jpg)
Joined: 26 Oct 2004 Posts: 276 Location: Brest / Metz
|
Posted: Wed Dec 14, 2005 12:00 pm Post subject: |
|
|
takhisis_astrafall wrote: | ou alors tu recompile mysql avec |
Pas tres utile parce que ca ne fait que changer le charset par defaut...
Sans me vanter, je prefere la solution que je propose car elle "passe partout" ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|