Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mysql startet nach Update nicht mehr
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Thu Jun 08, 2006 11:11 am    Post subject: mysql startet nach Update nicht mehr Reply with quote

Nachdem es vor kurzem so viele Probleme mit Unicode gegeben hat, dachte ich ich warte noch mit dem update der Mysql bis das behoben ist.
Jetzt hab ich sie upgedatet, was fehlerfrei lief. Danach habe ich noch einen revdep-rebuild gemacht, damit die Apps, welche die Mysql - Clientlibs verwenden auch wieder funktionieren. Das lief auch erfolgreich.
Doch jetzt kann ich die Mysql gar nicht mehr starten :

Code:
server mysql # tail -10 mysqld.err

060608 13:00:16 [Note] /usr/sbin/mysqld: Shutdown complete

InnoDB: Error: log file ./ib_logfile0 is of different size 0 8388608 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
060608 13:02:36 [ERROR] Can't init databases
060608 13:02:36 [ERROR] Aborting

060608 13:02:36 [Note] /usr/sbin/mysqld: Shutdown complete

server mysql #


Hat da jemand ne Idee ?
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Thu Jun 08, 2006 11:33 am    Post subject: Reply with quote

Brauchst du replikation?
Wenn nicht, dann loesch die ib_* files, die werden zur replikation gebraucht.
Und dann kommentier mal in deine my.cnf folgendes aus:
Quote:
log-bin
server-id = 1


HTH
Back to top
View user's profile Send private message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Thu Jun 08, 2006 11:42 am    Post subject: Reply with quote

dakjo wrote:
Brauchst du replikation?
Wenn nicht, dann loesch die ib_* files, die werden zur replikation gebraucht.
Und dann kommentier mal in deine my.cnf folgendes aus:
Quote:
log-bin
server-id = 1


HTH


Hab ich versucht, folgendes Resultat :

Code:

060608 13:45:01  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
060608 13:45:01  InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 44054.
InnoDB: Doing recovery: scanned up to log sequence number 0 44054
060608 13:45:01  InnoDB: Flushing modified pages from the buffer pool...
060608 13:45:01  InnoDB: Started; log sequence number 0 44054
060608 13:45:01 [Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is run
060608 13:45:01 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
/usr/sbin/mysqld: ready for connections.


Hab jetzt in der my.cnf folgendes angepasst :

Code:
[mysql]
character-sets-dir=/usr/share/mysql/charsets
#default-character-set=utf8
default-character-set=latin1

[mysqladmin]
character-sets-dir=/usr/share/mysql/charsets
#default-character-set=utf8
default-character-set=latin1

[mysqlcheck]
character-sets-dir=/usr/share/mysql/charsets
#default-character-set=utf8
default-character-set=latin1

[mysqldump]
character-sets-dir=/usr/share/mysql/charsets
#default-character-set=utf8
default-character-set=latin1

[mysqlimport]
character-sets-dir=/usr/share/mysql/charsets
#default-character-set=utf8
default-character-set=latin1

[mysqlshow]
character-sets-dir=/usr/share/mysql/charsets
#default-character-set=utf8
default-character-set=latin1

#character-set-server           = utf8
character-set-server            = latin1
#default-character-set          = utf8
default-character-set           = latin1

language                                        = /usr/share/mysql/german


Jetzt kommt sie zwar hoch, aber im Log noch folgende Fehler :

Code:
060608 13:48:21  InnoDB: Started; log sequence number 0 44054
060608 13:48:21 [Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is run
060608 13:48:21 [Warning] Can't open and lock time zone table: Tabelle 'mysql.time_zone_leap_second' existiert nicht trying to live without them
/usr/sbin/mysqld: Bereit für Verbindungen  Gentoo Linux mysql-4.1.20


Wies aussisht hat sich mit dem Passwortformat noch was geändert.
Kann man diesen "mysql_fix_privilege_tables" problemlos laufen lassen, oder passt das nachher mit den Passwörtern zu den Anwendungen nicht mehr ?

Muss ich im Zusammenhang mit UTF-8 noch irgendwas anpassen ? Sind da noch irgendwelche USE-Flags zu setzen ?
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes


Last edited by tazinblack on Thu Jun 08, 2006 12:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Thu Jun 08, 2006 12:01 pm    Post subject: Reply with quote

Du hast die ib_* files geloescht?
Back to top
View user's profile Send private message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Thu Jun 08, 2006 12:06 pm    Post subject: Reply with quote

dakjo wrote:
Du hast die ib_* files geloescht?


Sorry, hab zeitgleich den Beitrag editiert.
Ja, hab ich, siehe oben !
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes
Back to top
View user's profile Send private message
der_flo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2004
Posts: 142

PostPosted: Thu Jun 08, 2006 12:33 pm    Post subject: Reply with quote

ich dachte, ich hatte auch solche problem beim upgrade von 4.0.* auf 4.1.*
und ich dachte auch, dass es da von gentoo.org direkt einen migration-guide gibt ...

ah, da is er ja! guckst du:
http://www.gentoo.org/doc/en/mysql-upgrading.xml


ciaosn,
der flo
Back to top
View user's profile Send private message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Thu Jun 08, 2006 12:55 pm    Post subject: Reply with quote

ahh super !

Dann boote ich jetzt nochmal auf meiner zweiten Systempartition mit dem Stand von vor dem Update, fahre die normale Systempartiton wieder auf diesen Stand und machs dann nach Handbuch !

Danke für die schnelle Hilfe ! Geht eben doch nix über das Gentoo Forum
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes
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
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