Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Problem z mysql 5
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
yacenty
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2005
Posts: 101

PostPosted: Sun Oct 23, 2005 2:35 pm    Post subject: [solved] Problem z mysql 5 Reply with quote

Witam!
nawet nie zauwazylem dokladnie kiedy w systemie mialem upgrade Mysqla do wersji 5.0
dalem mu pozniej mysql_install_db
chicialem dodac hasla dla roota, ale juz nie lykal komend z opisu konfiguracji mysqla
teraz przy probie odpalenia wywala takie cos
Code:
/usr/bin/mysqld_safe &
[1] 9823
yacenty yacenty # Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
051023 16:26:19  mysqld ended

albo
Code:
/etc/init.d/mysql restart
 * Stopping mysqld (/etc/mysql/my.cnf) ...                                                                                                           [ ok ]
 * Starting mysqld (/etc/mysql/my.cnf) ...
..... * MySQL NOT started, proceding anyway

co moze byc? co robic:)
ktos sie juz z tym spotkal?

dodatkowo pojawily sie problemy ze wszystkimi aplikacjami korzystajacymi z mysqla jak np amarok ktory nie widzi libmysqlclient
co to moze byc?

pozdrawiam
YacentY


Last edited by yacenty on Mon Oct 24, 2005 10:37 am; edited 1 time in total
Back to top
View user's profile Send private message
muchar
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 690
Location: /dev/urandom

PostPosted: Sun Oct 23, 2005 3:03 pm    Post subject: Reply with quote

Po pierwsze. Nie mogłeś "nagle nie zauważyć" że masz już mysql 5.x, bo musiałeś dać:

Code:
export MYSQL_STRAIGHT_UPGRADE=1


Poza tym trzeba uważnie czytać co Gentoo napisało na ekranie:

Code:
 * MySQL DATADIR is /var/lib/mysql
 * Previous datadir found, it's YOUR job to change
 * ownership and have care of it
 * If you're upgrading from MySQL-3.x to 4.0, or 4.0.x to 4.1.x, you
 * must recompile the other packages on your system that link with
 * libmysqlclient after the upgrade completes.  To obtain such a list
 * of packages for your system, you may use 'revdep-rebuild' from
 * app-portage/gentoolkit.
 *
 * the value of "innodb_log_file_size" into /etc/mysql/my.cnf file
 * has changed size from "8M" to "5M".
 * To start mysql either revert the value back to "8M" or backup and
 * remove the old ib_logfile* from the datadir


Więc proszę, ogranicz te niepotrzebne ściemy.

EDIT: Może to Ci coś pomoże: http://www.gentoo.org/doc/en/mysql-upgrading.xml
_________________
MuchaR
Nie denerwuj mnie. Kliknij tu!!!
Homepage: http://muchar.one.pl!!!
Back to top
View user's profile Send private message
rudyyy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2005
Posts: 134
Location: /root

PostPosted: Sun Oct 23, 2005 4:37 pm    Post subject: Reply with quote

dokladnie to samo mam ci do powiedzenia - niemozliwe, zebys nie zauwazyl ze masz nagle 5.0
wklej logi moze z /var/log/mysql/* bo nic nie wiadomo

ze amarok ci nie widzi libmysql*, powod jest prosty - zmienila sie ta biblioteka w nowej wersji mysqla. uruchom revdep-rebuild albo przekomiluj reszcznie emerge -D --newuse world
Back to top
View user's profile Send private message
yacenty
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2005
Posts: 101

PostPosted: Sun Oct 23, 2005 6:53 pm    Post subject: Reply with quote

/var/log/mysql/mysqld.err
Code:
051023 20:31:44  mysqld started
051023 20:31:45 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as
a master and has his hostname changed!! Please use '--log-bin=yacenty-bin' to avoid this problem.
InnoDB: Error: log file ./ib_logfile0 is of different size 0 8388608 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
051023 20:31:45 [ERROR] Can't init databases
051023 20:31:45 [ERROR] Aborting

051023 20:31:45 [Note] /usr/sbin/mysqld: Shutdown complete

051023 20:31:45  mysqld ended


a co do wydawania specjalnych polecen to nic nie dawalem
jedyne co zrobilem to wywalilem wczesniej mysqla 4
fakt zle sie wczesniej wyrazilem.
nie doczytalem tego info o zmianie wielkosci pliku
sorki za zawracanie dupy

dzieki za wskazowki
pozdrawiam
YacentY
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) 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