Php - 您的 PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展 [英] Php - Your PHP installation appears to be missing the MySQL extension which is required by WordPress

查看:60
本文介绍了Php - 您的 PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何修复下面的错误?

How do I fix the error below?

您的 PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展.

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

我通过 telnet 连接使用我的 NAS.

I use my NAS with a telnet connection.

我安装了 FFP 0.7

I installed FFP 0.7

我的 php.ini 位于:ffp/etc/php.ini 并且我取消了我认为有用的所有内容的注释.

My php.ini is in: ffp/etc/php.ini and I uncommented everything I thought to be of use.

下面是我的php.ini文件的一部分;

Below is a portion of my php.ini file;

;If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
extension=msql.dll
;
; ... or under UNIX:
;
extension=msql.so
;
; ... or with a path:
;
extension=/ffp/lib/extensions/no-debug-non-zts-20100525/mysql.so
;


extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

突出的问题是,当我在 phpinfo() 中运行时,我看到模块 MySQLi 已激活,但未激活 MySQL.

The outstanding issue is that when I run in phpinfo(), I see the module MySQLi activated but not MySQL.

MySQL 与 PHP 和 Lighttpd Web 服务器一样正常工作.

MySQL is working as expected just as PHP and Lighttpd web server.

我同样有 phpmyadmin 工作.

I equally have phpmyadmin working.

它在 Zyxel NSA310 上.

It's on a Zyxel NSA310.

此外,当 mysqld 启动时,它会从我的根目录创建一个快捷方式:ffp/opt/mysql.. 并且每次我重新启动我的 NAS 时,快捷方式都是已删除.

Also, when mysqld is started, it creates a shortcut from my root to: ffp/opt/mysql.. and every time I restart my NAS the shortcut is deleted.

有没有人可能知道这个技巧?

Does anyone might know a trick for this?

推荐答案

不推荐使用 php mysql api.这是 kaput --- 消失了 - 不再使用,finito.

The php mysql api is deprecated. It's kaput --- going away -- not to be used, finito.

如果你有一个现代版本的 PHP (> 5.6) 那么 Wordpress 应该会自动切换到使用 mysqli.那应该是你的第一次尝试.

If you have a modern version of PHP (> 5.6) then Wordpress should automatically switch to make use of mysqli. That should be your first attempt.

如果你不能更新你的 php,而不是试图复活一些 php 不再支持的东西,只需修补你的 wordpress:http://wordpress.org/plugins/mysqli/

If you can not update your php, rather than attempting to resurrect something that php no longer supports, just patch your wordpress: http://wordpress.org/plugins/mysqli/

这篇关于Php - 您的 PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆