- 主题:mysql problem
想运行 newpoststat...但失败了.
亦已设置 newpost_stat...
[bbs@localhost ~/bin]$ ./newpoststat
No Database Selected
No Database Selected
求教~!
--
FROM 218.103.141.*
【 在 ivanchoi (Ivan Choi) 的大作中提到: 】
: 想运行 newpoststat...但失败了.
: 亦已设置 newpost_stat...
: [bbs@localhost ~/bin]$ ./newpoststat
: ...................
还有...
当我设定了 newpost_stat 后,想贴文章时出现....
Fatal error: Call to undefined function mysql_connect() in /usr/local/www/htdocs/db.php on line 27
db.php ,#27
$this->link = mysql_connect($this->host,$this->user,$this->pass);
--
修改:ivanchoi FROM 218.103.141.*
FROM 218.103.141.*
这个毛病看起来是因为你编译PHP的时候没有加入mysql支持
【 在 ivanchoi (Ivan Choi) 的大作中提到: 】
: 还有...
: 当我设定了 newpost_stat 后,想贴文章时出现....
: Fatal error: Call to undefined function mysql_connect() in /usr/local/www/htdocs/db.php on line 27
: ...................
--
FROM 162.105.31.*
看看你的sysconf.ini里数据库部分初始化了没有
包括ip/数据库/用户/密码等
【 在 ivanchoi (Ivan Choi) 的大作中提到: 】
: 想运行 newpoststat...但失败了.
: 亦已设置 newpost_stat...
: [bbs@localhost ~/bin]$ ./newpoststat
: ...................
--
FROM 211.144.200.*
stiger早!
【 在 stiger (再见,清华;再见,北京) 的大作中提到: 】
: 看看你的sysconf.ini里数据库部分初始化了没有
: 包括ip/数据库/用户/密码等
--
FROM 162.105.31.*
【 在 atppp (Big Mouse) 的大作中提到: 】
: 这个毛病看起来是因为你编译PHP的时候没有加入mysql支持
对,发现了真的 php 没有support mysql.
本人用的是 php5.0 ,mysql 4.0 (RPM) , libxml2 ..
我已在 configure php 的时候加上 --enable-mysql 该它自动侦测,但失败,但找不到.
亦试过 加上 DIR 亦找不到.
每次都check 不到 mysql....
--
FROM 218.103.141.*
不对,你没装mysql-devel rpm?
【 在 ivanchoi (Ivan Choi) 的大作中提到: 】
: 对,发现了真的 php 没有support mysql.
: 本人用的是 php5.0 ,mysql 4.0 (RPM) , libxml2 ..
: 我已在 configure php 的时候加上 --enable-mysql 该它自动侦测,但失败,但找不到.
: ...................
--
FROM 162.105.31.*
【 在 atppp (Big Mouse) 的大作中提到: 】
: 不对,你没装mysql-devel rpm?
我已装回 3.23.58...但也是侦测不到.
(quote from configure)
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... no
checking whether to enable embedded MySQLi support... no
我也有装 MySQL-devel-3.23.58-1 啊...
--
FROM 218.103.141.*
这个是我的
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
checking for mysql_close in -lmysqlclient... (cached) yes
checking for MySQLi support... no
checking whether to enable embedded MySQLi support... no
mysql 3.23.58-9 rpm
php 5.0.0
如果位置装对了应该能自动找到的。
【 在 ivanchoi (Ivan Choi) 的大作中提到: 】
: 我已装回 3.23.58...但也是侦测不到.
: (quote from configure)
: checking for mSQL support... no
: ...................
--
FROM 128.12.155.*
【 在 atppp (Big Mouse) 的大作中提到: 】
: 这个是我的
: checking for mSQL support... no
: checking for MSSQL support via FreeTDS... no
: ...................
已把 php 降回 4, mysql 降回 3.23
并在configure 找到 mysql support..=yes !!
亦在 phpinfo() 找到 MySQL Support enabled
但 bbs/bin/newpoststat 还是会出现
[bbs@localhost ~/bin]$ ./newpoststat
No Database Selected
No Database Selected
我是用 bbs 来行 newpoststat 的.
不知是甚么问题呢? :O
--
FROM 218.103.141.*