简体   繁体   English

Apache、PHP 和 Percona 数据库

[英]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.

相关问题 cPanel上的Percona Server-PHP缺少mysql扩展 - Percona Server on cPanel - Missing mysql extension for PHP 将sles apache上的php pdo连接到mssql数据库 - connect php pdo on sles apache to mssql database 如何使用php将请求的URL保存到数据库中的apache? - How to save the url of requests to an apache in to database with php? Symfony和Percona - Symfony and Percona 如何用Apache Derby替换MySQL Server作为PHP应用程序数据库? - How to replace MySQL Server with Apache Derby as a PHP application database? 对于使用OpenSSL的MediaWiki / Apache / PHP / MySQL的数据库连接需要SSL - Requiring SSL for the database connection for MediaWiki/Apache/PHP/MySQL with OpenSSL 用php将数据插入数据库中,没有行被填充APACHE2 - Inserting data into a database with php no rows being filled APACHE2 使用PHP将Apache日志文件插入到Oracle数据库 - Inserting Apache log file to oracle database using PHP 替代pg_connect()在PHP中以Apache模块运行的PostgreSQL数据库 - Alternative to pg_connect() for PostgreSQL database in PHP running as Apache Module 适用于重型数据库的最佳PHP搜索技术,例如适用于Java的apache solr - Best PHP search technique for heavy database like apache solr for java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM