PHP-您的PHP安装似乎缺少WordPress所需的MySQL扩展 [英] Php - Your PHP installation appears to be missing the MySQL extension which is required by WordPress
问题描述
如何解决以下错误?
您的PHP安装似乎缺少WordPress所需的MySQL扩展.
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
我将我的NAS与telnet连接使用.
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.
有人知道这个窍门吗?
推荐答案
不建议使用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:
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屋!