[英]Apache, PHP and Percona Database
I have just upgraded MySQL 5.0 to Percona XtraDB 5.1.我刚刚将 MySQL 5.0 升级到 Percona XtraDB 5.1。 I had to yum remove all the mysql stuff first.我必须先删除所有 mysql 的东西。 Everything was working fine, until I restarted Apache and now I get:一切正常,直到我重新启动 Apache 现在我得到:
Fatal error: Call to undefined function mysql_connect()致命错误:调用未定义的 function mysql_connect()
Any ideas?有任何想法吗? I have a feeling I removed some sort of mysql plugin for apache at the same time.我有一种感觉,我同时为 apache 删除了某种 mysql 插件。
I use the following functional configuration with PHP and Percona on at least 150 servers:我在至少 150 台服务器上对 PHP 和 Percona 使用以下功能配置:
Percona-Server-shared-55-5.5.30-rel30.2.509.rhel6.x86_64
Percona-Server-client-55-5.5.30-rel30.2.509.rhel6.x86_64
Percona-Server-server-55-5.5.30-rel30.2.509.rhel6.x86_64
Percona-Server-devel-55-5.5.30-rel30.2.509.rhel6.x86_64
Percona-Server-shared-compat-5.5.30-rel30.2.509.rhel6.x86_64
php-5.3.3-22.el6.x86_64
php-xml-5.3.3-22.el6.x86_64
php-cli-5.3.3-22.el6.x86_64
php-pdo-5.3.3-22.el6.x86_64
php-mcrypt-5.3.3-1.el6.x86_64
php-xmlrpc-5.3.3-22.el6.x86_64
php-common-5.3.3-22.el6.x86_64
php-mysql-5.3.3-22.el6.x86_64
As for the error libmysqlcient16.so is, resolvable by installing Percona-Server-shared-compat-[version].rpm.至于报错 libmysqlcient16.so ,可以通过安装 Percona-Server-shared-compat-[version].rpm 解决。
You need to install the php-mysql library.您需要安装 php-mysql 库。 Depending on your distribution, this may have a slightly different name.根据您的发行版,它的名称可能略有不同。 Also, I was just experimenting with this on Ubuntu 11.04.另外,我只是在 Ubuntu 11.04 上对此进行了试验。 Ended up going back to MySQL because PHP-MySQL wouldn't install without libmysqlcient16 which wouldn't install because it conflicted with percona.最终回到 MySQL 因为 PHP-MySQL 不会在没有 libmysqlcient16 的情况下安装,因为它与 percona 冲突而无法安装。 Hopefully, you don't run into the same problems that I did.希望你不会遇到和我一样的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.