duanhe1976 2015-10-21 08:47
浏览 56

调用未定义的函数mysql_connect()错误

I have 2 servers:

server 1: contain mySql database.

server 2: contain the PHP source.

The servers have connection between them.

When i try to connect to mySql from PHP source, i get this error:

Fatal error: Call to undefined function mysql_connect()

When i run phpinfo() function in php, i didnt get a row of mysql, but under configure command i get --without-mysql (the blue text in the image):

enter image description here

I try to run on the server this commant: install php-mysql, it install but mysql commands stil not work in php files.

what could i do to solve it?

  • 写回答

1条回答 默认 最新

  • dongzhan0624 2015-10-21 09:28
    关注

    Try to restart/reload Apache (I see that you use it) and check phpinfo(). Then you restart Apache PHP reread configuration file (php.ini).

    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题