我在linux上安装了mysql-5.1.51-linux-x86_64-glibc23.tar.gzPHP Version 5.3.3的phpinfo()如下:
Configure Command './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql-dir=/usr/local/mysql' '--with-libxml-dir=/usr/local/libxml' '--with-gd=/usr/local/gd' '--with-jpeg-dir=/usr/local/jpeg' '--with-png=/usr/local/lib' '--with-zlib-dir=/usr/local/zlib' '--with-freetype-dir=/usr/local/freetype' '--with-curl=/usr/local/curl/' '--enable-ftp' '--enable-soap' '--with-xsl=/usr/local/libxslt' '--enable-xslt' '--enable-sockets' '--enable-mbstring' '--enable-exif' '--with-imagick=/usr/local/ImageMagickmysql启动正常,
[root@cvs bin]# mysql --version
mysql Ver 14.14 Distrib 5.1.51, for unknown-linux-gnu (x86_64) using readline 5.1
可是用php页面测试mysql数据库连接时,报Fatal error: Call to undefined function mysql_connect()
请问下该如何解决?
Configure Command './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql-dir=/usr/local/mysql' '--with-libxml-dir=/usr/local/libxml' '--with-gd=/usr/local/gd' '--with-jpeg-dir=/usr/local/jpeg' '--with-png=/usr/local/lib' '--with-zlib-dir=/usr/local/zlib' '--with-freetype-dir=/usr/local/freetype' '--with-curl=/usr/local/curl/' '--enable-ftp' '--enable-soap' '--with-xsl=/usr/local/libxslt' '--enable-xslt' '--enable-sockets' '--enable-mbstring' '--enable-exif' '--with-imagick=/usr/local/ImageMagickmysql启动正常,
[root@cvs bin]# mysql --version
mysql Ver 14.14 Distrib 5.1.51, for unknown-linux-gnu (x86_64) using readline 5.1
可是用php页面测试mysql数据库连接时,报Fatal error: Call to undefined function mysql_connect()
请问下该如何解决?
解决方案 »
- 怎么样刷新缓存文件
- 字符串替换
- 修改代码错误 ,谢谢 急急急
- 有谁会用这个网站是的主机 www.goodaddress.eu
- 怎样在纯环的记录后面加一外|号??
- 如何突出显示访问过的链接?
- php中foreach和for到底有没有区别,尤其是在处理多线程(本例是对IOS进行推送)方面?
- 晕啦,怎么都不对,用过smarty的朋友帮忙看看
- =============== 一个简单PHP项目外包,1万RMB ===============
- 给大家一个完全公开源代码的论坛下载:心空论坛v1.1.2
- ZEND框架有什么好书?想学好!电子书、实体书?朋友们推荐一下。
- php 正则表达式如何匹配一个有范围的数字?
我安装这个后,也没有用
如此装了也不行
能不能说的具体点,在apache里如何让它加载mysql.so?
--with-mysql-dir=/usr/local/mysql可是实际上你的mysql是安装在/usr/local/mysql的吗?!
源码编译安装mysql+php+apache http://blog.csdn.net/steptodream/archive/2010/09/09/5874314.aspx