Mysql
在 cPanel 上解除安裝 My SQL for MariaDB Replacement
好吧,我一天的第一部分花在研究如何刪除 MySQL 以安裝 MariaDB,而我一天的第二部分花在嘗試重新安裝 MySQL,因為有些事情搞砸了。所以現在我來向群眾尋求幫助。
我有一個帶有 cPanel/WHM 的盒子。CentOS 5.6 64 位。我已經(通過 WHM)將 MySQL 升級到 5.5.24,並且成功了。經過一番研究,我發現的選項是帶有管道 greps 和破折號的令人生畏的 Linux 命令,以及另一個命令
yum remove mysql
我試過了,它似乎刪除了 mysql …..ish。我嘗試從這個說明頁面安裝 MariaDB ,它開始這樣做,然後出現了無數錯誤(這裡有一個小範例):
Transaction Check Error: file /etc/init.d/mysql from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/bin/mysql_convert_table_format from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/bin/mysql_install_db from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/bin/mysql_secure_installation from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/bin/mysqlbug from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/bin/mysqld_multi from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/bin/mysqld_safe from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/bin/mysqldumpslow from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/bin/mysqlhotcopy from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/share/man/man1/innochecksum.1.gz from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/share/man/man1/my_print_defaults.1.gz from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/share/man/man1/myisam_ftdump.1.gz from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/share/man/man1/myisamchk.1.gz from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64 file /usr/share/man/man1/myisamlog.1.gz from install of MariaDB-server-5.5.25-1.i386 conflicts with file from package MySQL-server-5.5.24-1.cp.1132.x86_64
所以看起來 MySQL 沒有被正確刪除。我已經閱讀了不同站點上提供的安裝 MariaDB 的不同教程,您必須解除安裝/刪除 MySQL,並且沒有給出任何關於如何執行此操作的命令。
有誰知道如何“安全地”刪除 WHM/cPanel 伺服器上的 MySQL,以便我可以安裝 MariaDB?
這是我的回購文件,以防有人需要知道……
# MariaDB repository list - created 2012-07-10 17:09 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos5-x86 gpgcheck=1
您應該首先刪除 MySQL 伺服器(到目前為止您只刪除了客戶端),這樣
yum remove MySQL-server-5.5.24-1.cp.1132.x86_64
就可以了。MariaDB 應該在那之後安裝沒有錯誤。而且我認為最好先備份所有內容。/var/lib/mysql
你至少應該備份。
除了包衝突:
您正在 64 位主機上安裝 32 位數據庫引擎。這就是回購行中“x86”的含義:
baseurl = http://yum.mariadb.org/5.5/centos5-x86
建議您將其替換為
baseurl = http://yum.mariadb.org/5.5/centos5-amd64