linux下安装phpmyadmin遇到错误提示及解法

1. PHP 5.2+ is required

PhpMyAdmin2.x 系列版本针对的是小于PHP 5.2 以下版本,PhpMyAdmin3.x 系列版本针对的是大于等于 PHP 5.2 以上版本,安装相应的版本即可

 

2.提示配置文件现在需要绝密的短语密码(blowfish_secret)”的处理

拷贝 config.inc.sample.php 重命名为 config.inc.php,编辑

$cfg['blowfish_secret'] = '1'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

上面中的1是随便写进去的

 

3.无法载入 mcrypt 扩展,<br />请检查 PHP 配置

安装下面两个软件包即可,why?待续.

php-mcrypt-5.1.6-1.el5.i386.rpm

libmcrypt-2.5.7-1.2.el5.rf.i386

下载地址:

http://rpm.pbone.net/index.php3/stat/4/idpl/12103654/dir/redhat_el_5/com/php-mcrypt-5.1.6-1.el5.i386.rpm.html

 

http://rpm.pbone.net/index.php3/stat/4/idpl/12103654/dir/redhat_el_5/com/php-mcrypt-5.1.6-1.el5.i386.rpm.html

 

 

4.#1045 - Access denied for user 'root'@'localhost' (using password: NO)

方法一:
# /etc/init.d/mysqld stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('
newpassword') where USER='root';

例如密码是1,则这样写

mysql> UPDATE user SET Password=PASSWORD('1') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit

方法二:我没有测试过
直接使用/etc/mysql/debian.cnf文件中[client]节提供的用户名和密码:
# mysql -udebian-sys-maint -p
Enter password: <
输入[client]节的密码>
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit

5.安装动网的论坛,运行时出现:数据库错误,错误信息:Access denied for user 'dvbbs'@'localhost' (using password: YES)

有一原因是用户已修过密码,找到inc目录下真接修改config.php文件即可