LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 873|回复: 6

phpmyadmin 安装不了,说要 re-installed PHP,可是PHP安装完后还是不行

[复制链接]
发表于 2006-12-19 17:14:12 | 显示全部楼层 |阅读模式
安装 phpMyAdmin-2.9.1.1的时候提示:
*
* dev-lang/php-5.1.6-r8 needs to be re-installed with all of the following
* USE flags enabled:
*
* pcre session unicode
*
* as well as any of the following USE flags enabled:
*
* mysql or mysqli if using dev-lang/php-5
* mysql if using dev-lang/php-4
*

于是USE=“pcre session unicode mysql mysqli” emerge php
可是完成后phpMyAdmin-2.9.1.1仍然安装不了,还是上边的提示!
 楼主| 发表于 2006-12-19 19:03:29 | 显示全部楼层
在emerge --newuse --deep  --update --pretend world的时候有这样的提示:
[ebuild  NS   ] dev-db/phpmyadmin-2.9.1.1  USE="vhosts"
回复 支持 反对

使用道具 举报

发表于 2006-12-19 20:01:52 | 显示全部楼层
phpmyadmin应该没多大关系。
自己下个phpmyadmin的linux版本的包,解压就好了。关键是你的php,mysql环境是否能正常工作。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-19 20:24:00 | 显示全部楼层
Post by taocp
phpmyadmin应该没多大关系。
自己下个phpmyadmin的linux版本的包,解压就好了。关键是你的php,mysql环境是否能正常工作。
打开本地的时候说:
无法载入 mysql 扩展,<br />请检查 PHP 配置
回复 支持 反对

使用道具 举报

发表于 2006-12-19 21:06:47 | 显示全部楼层
感觉应该是php.ini中的mysql前面的分号没去掉,不知道对不对?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-20 08:30:54 | 显示全部楼层
Post by taocp
感觉应该是php.ini中的mysql前面的分号没去掉,不知道对不对?
我不清楚,有关Linux的一切我都是刚刚接触。我找找看这个php.ini在哪里。

我发现这个Linux再是有趣的东东,里面不知道埋藏了多少宝贝。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-20 08:44:10 | 显示全部楼层
找到 PHP.ini 了,可是那么多的分号应该去那个呢?
[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =

; Maximum time (in secondes) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off

看样子应该是正确的吧。
是不是要PHP支持Mysql还要安装其它的东西,我找了一下资料,听说以前还要另外安装一个模块什么的,不过那些资料有些年头了,不知道最新的PHP5是不是也要安装这么一个东东?如果需要安装,名字叫什么?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表