我已经使用macports安装了mySql5,并设法运行了mysql服务器。但是,由于某种原因,所有与mySql相关的函数(如mysql_connect )都会返回一条错误消息,指出“调用未定义的函数...”。在php5下。
以下是摘自phpinfo报告的部分mysqlnd部分:
mysqlnd enabled
Version mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $
Command buffer size 4096
Read buffer size 32768
Read timeout 31536000
Collecting statistics Yes
Collecting memory statistics Yes
Client statistics
bytes_sent 0
bytes_received 0
packets_sent 0
packets_received 0
protocol_overhead_in 0
protocol_overhead_out 0
bytes_received_ok_packet 0 有人知道如何解决这个问题吗?
谢谢
发布于 2010-02-04 00:13:22
你是否也安装了带有mysql变体的php5?
sudo port install php5 +mysql或其他类似的东西...我已经有一段时间没有安装php端口了。:-)
https://stackoverflow.com/questions/2193325
复制相似问题