已安装MacPorts PHP,现在无法与MySQL交互-Mac OS X [英] Installed MacPorts PHP, now cannot interface with MySQL - Mac OS X

查看:119
本文介绍了已安装MacPorts PHP,现在无法与MySQL交互-Mac OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有与Mac OS X捆绑在一起的PHP的标准版本,可以正常运行,但是我想升级到新版本,所以我使用了

I had the standard version of PHP which comes bundled with Mac OS X working perfectly, but I wanted to upgrade to the new version so I used MacPorts, and all went well. I then edited my .conf file and checked and now my version of PHP is updated to the latest version.

但是,在运行我正在处理的PHP项目时,现在看来我无法与MySQL交互,而该MySQL正在与Mac OS X捆绑在一起的标准PHP安装一起工作(注意:我最初是从MySQL安装的安装程序).

However, upon running a PHP project I'm working on, it now seems I am unable to interface with MySQL which was working with the standard PHP install which came bundled with Mac OS X (note: I originally installed MySQL from their installer from their homepage).

我的问题是:有没有办法让MacPort PHP与我的旧MySQL安装一起使用?

My question is this: Is there a way to get MacPort PHP to work with my old MySQL installation?

推荐答案

您是否已从MacPorts安装了php5-mysql软件包?

Have you installed the php5-mysql package from MacPorts?

MacPorts中PHP的默认安装相对较少,但是有很多可用的附加模块.

The default installation of PHP in MacPorts is relatively minimal, but there are lots of add-on modules available.

这篇关于已安装MacPorts PHP,现在无法与MySQL交互-Mac OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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