Linux环境
php和mysql都是rpm安装的
单独的运行php和mysql都是可以的
当php程序要链接到mysql就出现问题了
空白页面什么提示都没有
我已经修改了php.ini文件,加了mysql.so和mysqli.so
php的mould里也是有这两个so文件的
问题补充:
执行yum install php-mysql 这个命令,有下面错误
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
file /usr/bin/mysql_config from install of mysql-5.0.45-7.el5 conflicts with file from package MySQL-devel-community-5.1.26-0.rhel5
file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.0.45-7.el5 conflicts with file from package MySQL-devel-community-5.1.26-0.rhel5
问题补充:
php-mysql这个包 已经安装了
问题补充:
php-5.1.6-5.el5
php-cli-5.1.6-5.el5
php-devel-5.1.6-5.el5
php-mbstring-5.1.6-5.el5
php-ncurses-5.1.6-5.el5
php-xml-5.1.6-5.el5
php-xmlrpc-5.1.6-5.el5
php-bcmath-5.1.6-5.el5
php-common-5.1.6-5.el5
php-gd-5.1.6-5.el5
php-mysql-5.1.6-5.el5
php-pear-1.4.9-4
php安装了上面这些包,都是rpm
perl-DBI-1.52-1.fc6.i386.rpm
MySQL-shared-community-5.1.26-0.rhel5.i386.rpm
MySQL-devel-community-5.1.26-0.rhel5.i386.rpm
MySQL-server-community-5.1.26-0.rhel5.i386.rpm
MySQL-client-community-5.1.26-0.rhel5.i386.rpm
上面这些包是安装mysql的
问题补充:
是版本问题,我把mysql全部卸载了,重新到光盘里找到了,然后就好了,谢谢各位了
提示信息很明确了吧,
你装了两个版本的mysql: 5.0.45-7和5.1.26-0,
冲突了, 卸载5.0.45-7试试看
看看有没有装 php-mysql这个包
我通常是yum install php-mysql
或者你把php.ini里的error report 开出来,看看什么错误
应该是mysql版本问题吧