使用MariaDB 10安装phpmyadmin

时间:2014-04-18 16:09:13

标签: php mysql phpmyadmin mariadb

我已成功安装mariaDB(测试连接,工作正常)和phpmyadmin。但是,在尝试访问phpmyadmin时,我得到以下内容:

phpMyAdmin - Error
Cannot load mysql extension. Please check your PHP configuration. - Documentation

我试图按照指示安装php-mysql,但是我得到了一个依赖性错误,我无法轻易解释。

$ sudo yum -y install php-mysql
Loaded plugins: security
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.i386 0:5.1.6-23.el5 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.el5 for package: php-mysql
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: libmysqlclient.so.15 for package: php-mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: php-mysql
--> Running transaction check
---> Package php-common.i386 0:5.1.6-23.el5 set to be updated
---> Package php-pdo.i386 0:5.1.6-23.el5 set to be updated
---> Package mysql.i386 0:5.0.45-7.el5 set to be updated
--> Processing Conflict: mysql conflicts MySQL
--> Finished Dependency Resolution
mysql-5.0.45-7.el5.i386 from el5_u3_base has depsolving problems
  --> mysql conflicts with MariaDB-server
Error: mysql conflicts with MariaDB-server

为什么mysql与MariaDB-server冲突?我该如何解决冲突?

注意:此主机以前安装了mysql(v4?)。我以为我完全删除了它:

sudo yum remove mysql mysql-server

1 个答案:

答案 0 :(得分:0)

部分答案可能是安装MariaDB-compat软件包,因为它还满足了mysql填充的依赖关系(对于mysql客户端软件包)。然后再次尝试安装/更新phpMyAdmin(或php-mysql)包。