2017-04-24 20:25
浏览 48

自制PHP PHP mysql_connect

I have a project that is using mysql_connect(). (I cannot change this to mysqli)

I am getting the error: Call to undefined function mysql_connect()

I have installed php56 using homebrew brew install php56 --with-http24

I have seen people mentioning the --with-mysql flag however this does not exist.

When running brew options php56 i see --without-mysql

when I run phpinfo() I get the following in the Configure Command:

./configure --with-mysql-sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' .... 

I also see sections for mysqli mysqlnd and pdo_mysql

and under Module Authors I have:

MySQL   |   Zeev Suraski, Zak Greant, Georg Richter, Andrey Hristov

Any Idea how to get mysql_connect() working?

图片转代码服务由CSDN问答提供 功能建议

我有一个使用 mysql_connect()</ code>的项目。 (我无法将其更改为 mysqli </ code>)</ p>

我收到错误:调用未定义的函数mysql_connect()</ code> </ p>

我已经使用自制软件安装了php56 brew install php56 --with-http24 </ code> </ p>

我看到有人提到 --with-mysql </ code>标志然而这不存在。 </ p>

运行 brew选项php56 </ code>时,我看到 - without-mysql </ code> </ p>

当我运行 phpinfo()</ code>时,我在配置命令中得到以下内容:</ p>

  ./ configure --with-mysql-sock = / tmp /  mysql.sock'' -  with-mysqli = mysqlnd'' -  with-pdo-mysql = mysqlnd'.... 
 </ code> </ pre> 

我也看到了 mysqli </ code> mysqlnd </ code>和 pdo_mysql </ code> </ p>

以及 Module Authors </ code>我有: </ p>

  MySQL |  Zeev Suraski,Zak Greant,Georg Richter,Andrey Hristov 
 </ code> </ pre> 

任何想法如何让 mysql_connect()</ code>工作?</ p> \ n </ div>

1条回答 默认 最新

相关推荐 更多相似问题