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

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

问题描述

我是 wordpress 的新手.上传网站后,我遇到了这个错误.该网站运行良好有一段时间,然后发生了这种情况.输入 URL 后,此文本将显示您的 PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展".去了 php.ini 但找不到要取消注释的内容.请以最好的方式提出建议.服务器 - Xampp

I'm new to wordpress. After uploading the website i'm facing this error. The site worked well for a while and then this happened. Upon entering the URL this text appears "Your PHP installation appears to be missing the MySQL extension which is required by WordPress". Went to php.ini but couldnt find what to uncomment. Please advise in the best way possible. Server - Xampp

推荐答案

您得到的错误 您的 PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展 是因为您的服务器是没有运行 Wordpress 所需的 MySQL 扩展

The error you got Your PHP installation appears to be missing the MySQL extension which is required by WordPress is because you're server is not having the MySQL Extension which is required for Wordpress to run

如果您使用的是基于 Windows 的操作系统,那么您应该在您的 xampp 中启用 mysql 扩展

If you are using Windows Based Operating System then you should enable the mysql extension in your xampp

即,您应该在 php.ini

extension=php_mysql.dll

或者如果你使用基于Linux的操作系统,那么你应该从终端安装mysql

Or If you use Linux based Operating System then you should install mysql from the Terminal by

sudo apt-get install php5-mysql

然后在 php.ini 中取消注释以下行

and then uncomment the following line in you php.ini

extension=mysql.so 

注意:

  1. 无论您使用什么操作系统,您都应该在取消注释 php.ini 文件后重新启动/停止并启动您的 Xampp 服务器

  1. What ever the Operating System you use, You should restart / stop and start your Xampp Server after uncommenting the php.ini file

如果您在线工作,那么您应该联系您的主机提供商为您的帐户启用 MySQL 扩展.

If you're working online then you should contact your host provider to enable the MySQL Extension for your Account.

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

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