Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mysql 4.1.14-r1 update und Umlaute sind alle weg
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Thu Apr 13, 2006 7:51 am    Post subject: Reply with quote

ian! wrote:
Aber ich möchte noch mal auf meinen vorigen Post hinweisen. Die Lösung bzw. der Fehler liegt nicht in der eclass.


S.o. - Desweiteren habe ich den Threadtitel um das "solved" erleichtert, da einige scheinbar immer noch Probleme haben.
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
wandra
n00b
n00b


Joined: 24 May 2005
Posts: 25

PostPosted: Thu Apr 13, 2006 10:26 am    Post subject: Reply with quote

------- Comment #3 From Jakub Moc 2006-04-12 23:59 PST [reply] -------

*** Bug 129762 has been marked as a duplicate of this bug. ***


------- Comment #4 From Luca Longinotti 2006-04-13 03:14 PST [reply] -------

All MySQL ebuilds from 4.1 up should now correctly use UTF8 as default charset
(the compiled in one). Now, you can overwrite that setting to whatever you want
in /etc/mysql/my.cnf, and the tools that correctly call and check my.cnf for
options will respect that, such as the mysqld itself, the mysql* tools.

PHP
isn't one of those, PHP always only uses the compiled in character set, which
is UTF8 now (and this is correct as it's upstream's default). We are atm
working on a patch to PHP so that it will also check my.cnf and get the
default-character-set settings from there. I'll update the bug once those fixed
PHP ebuilds are ready, with directions to find them.

Best regards, CHTEKK.
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Thu Apr 13, 2006 10:51 am    Post subject: Reply with quote

Ok, heisst das an den Tabellen ist wahscheinlich nichts falsch, sondern die Anwendungen (php,amarok,...) fragen nicht die Einstellungen in der my.cnf ab, sondern nehmen das einkompilierte charset?
Also liegt es an den Entwicklern dort das umzustellen?
Back to top
View user's profile Send private message
wandra
n00b
n00b


Joined: 24 May 2005
Posts: 25

PostPosted: Thu Apr 13, 2006 11:29 am    Post subject: Reply with quote

die entwickler wollen bei mysql utf8 als standard;

mit diesem 'getarnten' minor release, der von latin1 auf
utf8 switched, haben sie php-applikationen ein osterei gelegt

die php-apps fragen nämlich die my.cnf settings nicht ab
und erwarten nach wie vor latin1, kriegen aber utf8 gefüttert

das problem brennt, wieso die mysql-4.1.14 gleich von
den servern verschwunden ist, ist bescheuert ...

man kann nicht mal zurück

andere solution bisher noch net in sicht
theoretisch db und tabellen inhalte umstellen auf utf8

nur wie get das schnell, sicher und verläßlich ?

ein ziemlicher schmarren, wie man in wien sagt ....

ww

s|mon wrote:
Ok, heisst das an den Tabellen ist wahscheinlich nichts falsch, sondern die Anwendungen (php,amarok,...) fragen nicht die Einstellungen in der my.cnf ab, sondern nehmen das einkompilierte charset?
Also liegt es an den Entwicklern dort das umzustellen?
Back to top
View user's profile Send private message
wandra
n00b
n00b


Joined: 24 May 2005
Posts: 25

PostPosted: Thu Apr 13, 2006 11:59 am    Post subject: eine PROVISORISCHE lösung ... auf lapama24-server Reply with quote

das hab ich eben erhalten ... hoffe, es hilft !

15:00 - nach der dem compilieren und mysql restart
hat das bei mir das problem definitiv gelöst !!!

siehe http://www.lapalma24.org/ oder http://sos.primavista.net/

es folgen die beiden Lösungsansätze :

---------------------------------------------------------------------------------------

> i would like to revert to
> mysql-4.1.14 in the meantime , but emerge doesn't show that any more
>
> i am a little bit disappointed -
> lot of troubles with my production sites
>
> how can i get mysql-4.1.14 again ...
> mistakes can happen, i need a quick solution
> until the main issue is cleared
>
> help appreciated, yours
>

I've readded dev-db/mysql-4.1.14 to the tree, it's package masked so the
procedure to emerge it is slightely more complex.

echo "=dev-db/mysql-4.1.14" >> /etc/portage/package.unmask
emerge =dev-db/mysql-4.1.14

that's all, the commit will take some time to propagate (hours)
If you're in a hurry, copy /usr/portage/dev-db/mysql somewhere,
set PORTDIR_OVERLAY to "somewhere",
download
"http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/dev-db/mysql/mysql-4.1.14.ebuild"
put it in the overlay dev-db dir
run:
ebuild mysql-4.1.14.ebuild digest
emerge =dev-db/mysql-4.1.14


------- Comment #7 from chtekk@gentoo.org 2006-04-13 04:55 PST -------
(In reply to comment #6)
> any intermediate quick solution ?

4.1.14 is out of the servers as it has other problems and security issues. As a
temporary solution, you can do the following:

1) Open /usr/portage/eclass/mysql.eclass

2) Search for the following lines:

myconf="${myconf} --with-charset=utf8"
myconf="${myconf} --with-collation=utf8_general_ci"

and sobstitute them with:

myconf="${myconf} --with-charset=latin1"
myconf="${myconf} --with-collation=latin1_swedish_ci"

3) Save the file.

4) Emerge mysql-4.1.14-r1 again.

This should bring the situation back to the old one for now if you need to,
remember that the changes to mysql.eclass will be removed when you do your next
emerge --sync.
Best regards, CHTEKK.


------------------------------------

alte my.cnf nehmen !
bei mir ...

--------------------------------------------------------------------------------
# /etc/mysql/my.cnf: The global mysql configuration file.
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-4.1,v 1.2 2005/07/26 17:14:23 vivo Exp $

# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /var/run/mysqld/mysqld.sock

[mysql]
character-sets-dir=latin1
default-character-set=latin1

[mysqladmin]
character-sets-dir=latin1
default-character-set=latin1

[mysqlcheck]
character-sets-dir=latin1
default-character-set=latin1

[mysqldump]
character-sets-dir=latin1
default-character-set=latin1

[mysqlimport]
character-sets-dir=latin1
default-character-set=latin1

[mysqlshow]
character-sets-dir=latin1
default-character-set=latin1

[myisamchk]
character-sets-dir=latin1

[myisampack]
character-sets-dir=latin1

# use [safe_mysqld] with mysql-3
[mysqld_safe]
err-log = /var/log/mysql/mysql.err

# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations.
[mysqld]
#init-connect='SET NAMES latin1'
character-set-server = latin1
default-character-set = latin1
#character-set-system = latin1

(......)


Last edited by wandra on Thu Apr 13, 2006 2:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Thu Apr 13, 2006 2:31 pm    Post subject: Reply with quote

heh, willkommen im club. hab letzte nacht auch erstmal geflucht.

my.cnf alles wieder auf latin1 gestellt und den init-connect='SET NAMES latin1' eingebaut, dann gings.

mit dem ding wurde echt mal wieder n bock geschossen.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Thu Apr 13, 2006 3:11 pm    Post subject: Reply with quote

Naja kam halt ungünstig das die alte Version gleich draussen war (wenn auch begründet). Eventuell gabs ja wo nen Hinweis das hier was auf manche Leute zukommt. Habe leider nichts mitbekommen keine Warning/Info/Error Meldung im ebuild oder was im Newsletter.
Bezüglich amarok hab ich mal einen Bugreport aufgemacht, mit der hoffentlich korrekten Information. http://bugs.kde.org/show_bug.cgi?id=125513
Back to top
View user's profile Send private message
Makido
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2003
Posts: 98
Location: Berlin / Germany

PostPosted: Thu Apr 13, 2006 4:23 pm    Post subject: Reply with quote

Das hab ich dir aber weiter vorne auch schon geschrieben mit dem Init-... und wo es hin muss.
(Nach s|mon's erleuchtendem text ;)
Da hättest Du ja eigentlich das "latin1" auch erkennen können ;)

Naja, aber auf dauer ist das doch im endeffekt auch keine wirkliche Lösung?


Gruß,

Maik
_________________
Intel Q9550, 4096 MB DDRII-Ram, ATI Radeon HD3870, 1x750GB Samsung HD 7200 U/pm
Back to top
View user's profile Send private message
wandra
n00b
n00b


Joined: 24 May 2005
Posts: 25

PostPosted: Thu Apr 13, 2006 4:39 pm    Post subject: Reply with quote

tja, wieso das mit dem Init-** bei mir nicht geklappt,
muss wohl in den sternen stehen bleiben ....

[quote="Makido"]Das hab ich dir aber weiter vorne auch schon geschrieben mit dem Init-... und wo es hin muss.
(Nach s|mon's erleuchtendem text ;)
Da hättest Du ja eigentlich das "latin1" auch erkennen können ;)

Naja, aber auf dauer ist das doch im endeffekt auch keine wirkliche Lösung?



nein, aber die koordination des zusammenspiels von mysql und php hätte man sich auch schon vorher in ruhe überlegen können ... sogesehen war der joke unnötig

utf8 ist schon gut, aber in einer übergangsphase MUSS einfach beides funktionieren,
ohne dass riesenbrösel entstehen ....

und wenn schon nicht, dann hätte es eine warnung setzen müssen : vorsicht leute °

aber als minor update reinrutschen lassen ist eher übel ....
Back to top
View user's profile Send private message
Makido
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2003
Posts: 98
Location: Berlin / Germany

PostPosted: Thu Apr 13, 2006 8:40 pm    Post subject: Reply with quote

Das "reinrutschen lassen" wird wahrscheinlich auch der Grund sein warum viele leute Gentoo wieder aufgeben, denn es passiert ja nicht nur dieses eine mal... es ist zwar weniger geworden, aber einige Leute die den Portage-tree pflegen scheinen es amüsant zu finden das sie damit anderen Leuten ärger machen.

Vielleicht hat das ja auch mal konsequenzen für denjenigen welchen, der das in den tree gepflegt hat.

Jedenfalls lass ich nicht gerne mit mir Spielen.... Gentoo ist Super.... aber so läuft das nicht!

Gruß,

Maik
_________________
Intel Q9550, 4096 MB DDRII-Ram, ATI Radeon HD3870, 1x750GB Samsung HD 7200 U/pm
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Thu Apr 13, 2006 8:43 pm    Post subject: Reply with quote

*gacker* ach... so langsam sehe ich gentoo wie eine alte ehe. die hat ihre macken aber man weiss wenigstens was man davon hat.

chin chin... die hoffnung stirbt zuletzt.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
wols
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 92
Location: Franken

PostPosted: Sat Apr 15, 2006 4:29 pm    Post subject: Reply with quote

Hallo,
ich habe das ganze Spiel auch hinter mir ohne diesen Thread gefundenzu haben (hätte mir Stress erspart).

Ich nutze WackoWiki (PHP) und hatte auch die UTF-Probleme trotz LATIN1-Einstellungen in my.cnf.
Die Wiki-Programmierer hatten schon früher darauf hingewiesen MySQL mit UTF erst zu unterstützen wenn MySQL-4.1 mehr verbreitet ist.

Ich war total erfreut als unter Gentoo der 4.0.25-r2-nach-4.1.14-Umstieg per Ebuild ohne Auswirkung aufs Wiki blieb (Dank vorhandener[!] USE -utf8 und latin1 in my.cnf.). Dann nach 'emerge -Du world' kam das mysql-4.1.14-r1 und die oben beschriebenen Probleme.

Ich finde es echt Scheisse das funktionierende 4.1.14.ebuild sofort verschwinden zu lassen!
Aus meiner Datensicherung hatte ich es wieder in meinen lokalen Portage-Baum kopiert und nach 'ebuild ... digest' alles wieder wie gewünscht.
Aber mal ehrlich, manchmal liegen doch ältere Ebuilds auch noch lange rum - hier wäre es sogar mehr als hilfreich gewesen.

Liest das der Entwickler (dem ich aber trotzdem für die Erstellung jedes weiteren Ebuilds danke!)?
_________________
Danke und weiter so!


Last edited by wols on Sat Apr 15, 2006 6:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Sat Apr 15, 2006 4:35 pm    Post subject: Reply with quote

http://www.gentoo.org/cgi-bin/viewcvs.cgi/
Da solltest du ALLE JEMALS ERSCHIENENEN ebuilds bekommen ;)

z.B. mysql hier
Back to top
View user's profile Send private message
wols
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 92
Location: Franken

PostPosted: Sat Apr 15, 2006 4:37 pm    Post subject: Reply with quote

Wow, Danke!
Wieder ein neues Bookmark für den SuSE-Umsteiger :-)
_________________
Danke und weiter so!
Back to top
View user's profile Send private message
mneisen
n00b
n00b


Joined: 23 Feb 2005
Posts: 29

PostPosted: Wed Jun 21, 2006 2:48 pm    Post subject: Reply with quote

Hallo,

eine alternative Lösung für das in diesem Thread beschriebene Problem findet sich auch hier:



Mfg
Martin Eisenhardt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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