首页 > 数据库技术 > 详细

php 安装php5-mysql 拓展

时间:2016-08-12 14:48:15      阅读:358      评论:0      收藏:0      [点我收藏+]

Your PHP installation appears to be missing the MySQL extension which is required by WordPress Error and Solution

 

技术分享
技术分享
I‘m setting up WordPress based blog system under Debian or Ubuntu Linux. I am getting an error which read as follows:

 

 

 

 

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

 

How do I fix this problem under Debian or Ubuntu Linux?

First, make sure MySQL server is running. Type the following command at a shell prompt:
# /etc/init.d/mysql status
If MySQL is not running, enter:
# /etc/init.d/mysql start
If MySQL is not installed, type the following command to install MySQL server:
# apt-get install mysql-server
Make sure MySQL module for php5 is installed:
# dpkg --list | grep php5-mysql
To install php5-mysql module enter:
# apt-get install php5-mysql
Next, restart the Apache2 web server:
# /etc/init.d/apache2 restart
Now PHP support for MySQL should work without a problem. Also make sure you set localhost or 127.0.0.1 as MySQL hostname while performing wordpress installation.

php 安装php5-mysql 拓展

原文:http://www.cnblogs.com/oxspirt/p/5764603.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!