A atualização do MySQL causa erros

2

Estou executando o Centos 5.8 (Linux 2.6.18-308.13.1.el5 em x86_64) e desejo atualizar a versão 5.0.95 do MySQL. Eu estou usando um tutorial encontrado em link . Quando chego ao seguinte, recebo o host de erros. Parece ter algo a ver com a passagem de 386 para 86x64. Alguém pode ajudar? Obrigado

yum --enablerepo=remi,remi-test update mysql mysql-server

Transaction Check Error:   file /etc/my.cnf from install of
mysql50-5.0.96-2.ius.el5.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/info/mysql.info.gz from
install of mysql50-5.0.96-2.ius.el5.x86_64 conflicts with file from
package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/mysql.1.gz from install of
mysql50-5.0.96-2.ius.el5.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/mysqlaccess.1.gz from install of
mysql50-5.0.96-2.ius.el5.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/man/man1/mysqladmin.1.gz
from install of mysql50-5.0.96-2.ius.el5.x86_64 conflicts with file
from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/mysqldump.1.gz from install of
mysql50-5.0.96-2.ius.el5.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/man/man1/mysqlshow.1.gz
from install of mysql50-5.0.96-2.ius.el5.x86_64 conflicts with file
from package mysql-5.0.95-1.el5_7.1.i386   file /etc/my.cnf from
install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file
from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/charsets/Index.xml from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/charsets/cp1250.xml from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/charsets/cp1251.xml from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/czech/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/danish/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/dutch/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/english/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/estonian/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/french/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/german/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/greek/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/hungarian/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/italian/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/japanese/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/korean/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/norwegian-ny/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/norwegian/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/polish/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/portuguese/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/romanian/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/russian/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/serbian/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/slovak/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/spanish/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/mysql/swedish/errmsg.sys
from install of mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with
file from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/mysql/ukrainian/errmsg.sys from install of
mysql-libs-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/bin/mysqlaccess from install
of mysql-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/my_print_defaults.1.gz from install of
mysql-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/man/man1/mysql.1.gz from
install of mysql-5.5.28-1.el5.remi.x86_64 conflicts with file from
package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/mysql_config.1.gz from install of
mysql-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/mysql_find_rows.1.gz from install of
mysql-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/mysql_waitpid.1.gz from install of
mysql-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/mysqlaccess.1.gz from install of
mysql-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/man/man1/mysqladmin.1.gz
from install of mysql-5.5.28-1.el5.remi.x86_64 conflicts with file
from package mysql-5.0.95-1.el5_7.1.i386   file
/usr/share/man/man1/mysqldump.1.gz from install of
mysql-5.5.28-1.el5.remi.x86_64 conflicts with file from package
mysql-5.0.95-1.el5_7.1.i386   file /usr/share/man/man1/mysqlshow.1.gz
from install of mysql-5.5.28-1.el5.remi.x86_64 conflicts with file
from package mysql-5.0.95-1.el5_7.1.i386
    
por user1032531 21.10.2012 / 17:43

2 respostas

3

Parece que você usou os pacotes MySQL do repositório da comunidade IUS. Infelizmente, esses pacotes não parecem ser 100% compatíveis com os pacotes originais e, portanto, você obtém dependências quebradas como esta. Remova todos os pacotes MySQL existentes primeiro (seus bancos de dados não serão tocados) e instale os pacotes do repositório remi (que são compatíveis e não têm problemas de dependência).

Você também precisa ter certeza de que desativou ou removeu o repositório conflitante (IUS).

    
por 21.10.2012 / 18:39
2

Parece que a saída está tentando instalar a nova versão do mysql junto com a versão antiga, em vez de realmente fazer upgrade. Isso provavelmente é explicado pelo fato de que você está tentando instalar a versão x86_64, mas anteriormente você tinha a versão i386 (acho que isso deve ser considerado um bug no yum ou um bug no repositório que você está usando, e na verdade < a href="http://bugs.centos.org/view.php?id=1356"> aqui está o relatório do bug ).

Tente explicitamente especificar a versão i386 do mysql, ou usando o mysqldump para despejar a instância inteira, desinstalando e instalando a versão x86_64 e importando o dump (você pode importar dumps obtidos pelo mysqldump colocando-os em mysql -p , como eles são scripts SQL).

Para atualizar especificamente a versão i386, altere mysql mysql-server em seu comando para mysql.i386 mysql-server.i386 .

    
por 21.10.2012 / 17:58

Tags