Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[mysql] ou est l'iso...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Fri Dec 09, 2005 2:39 pm    Post subject: [mysql] ou est l'iso... Reply with quote

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
View user's profile Send private message
_droop_
l33t
l33t


Joined: 30 May 2004
Posts: 957

PostPosted: Fri Dec 09, 2005 3:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
bong
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 276
Location: Brest / Metz

PostPosted: Fri Dec 09, 2005 5:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
takhisis_astrafall
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2004
Posts: 127
Location: rennes

PostPosted: Wed Dec 14, 2005 9:35 am    Post subject: Reply with quote

ou alors tu recompile mysql avec
Code:
USE="-utf8"
Back to top
View user's profile Send private message
bong
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 276
Location: Brest / Metz

PostPosted: Wed Dec 14, 2005 12:00 pm    Post subject: Reply with quote

takhisis_astrafall wrote:
ou alors tu recompile mysql avec
Code:
USE="-utf8"


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:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum