OS/Linux

centos 기본 내장 mariadb 삭제 하고 mysql 5.6 설치 (Transaction Check Error: 해결법)

Dev. Tool 2018. 3. 25. 22:45

# remove mysql remove
# wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
# rpm -ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm


Transaction Check Error:
  file /etc/my.cnf from install of mysql-community-server-5.6.39-2.el6.x86_64 conflicts with file from package MariaDB-common-10.1.31-1.el6.x86_64
  file /usr/share/mysql/charsets/Index.xml from install of mysql-community-common-5.6.39-2.el6.x86_64 conflicts with file from package MariaDB-common-10.1.31-1.el6.x86_64
  file /usr/share/mysql/charsets/armscii8.xml from install of mysql-community-common-5.6.39-2.el6.x86_64 conflicts with file from package MariaDB-common-10.1.31-1.el6.x86_64
  file /usr/share/mysql/charsets/ascii.xml from install of mysql-community-common-5.6.39-2.el6.x86_64 conflicts with file from package MariaDB-common-10.1.31-1.el6.x86_64

.
.
.

Error Summary

# yum list installed | grep -i mysql
# yum erase <package-name>

then

# yum shell
> remove MariaDB-common-10.1.31.1.el6.x86_64
> run


# yum install mysql-community-server -y



참고 URL -

https://www.lesstif.com/pages/viewpage.action?pageId=24445108

http://bperhaps.tistory.com/entry/Centos7-Mariadb-%EC%84%A4%EC%B9%98-%EC%8B%9C-Transaction-check-error-%EC%B2%98%EB%A6%AC%EB%B2%95

http://webinformation.tistory.com/86