您好,欢迎访问一九零五行业门户网

mysql图形管理工具mysqlphpadm安装_MySQL

bitscn.com
mysql图形管理工具mysqlphpadm安装
[root@localhost mbstring]# wget http://jaist.dl.sourceforge.net/project/phpmyadmin/phpmyadmin/4.0.8/phpmyadmin-4.0.8-all-languages.tar.gz
[root@localhost mbstring]# tar xf phpmyadmin-4.0.8-all-languages.tar.gz -c /www
[root@localhost mbstring]# chown daemon.daemon /www/ -r
[root@localhost mbstring]# service apache restart
访问页面http://127.0.0.1/phpadmin/index.php
报错
the mbstring extension is missing. please check your php configuration.
错误很明显php模块扩展,由于我已经装好了php,又不想重新编译,所以就只能动态扩展
[root@localhost logs]# cd /usr/src/php-5.3.27/ext/
[root@localhost ext]# cd mbstring/
[root@localhost mbstring]# phpize   -----生成configure 等文件
[root@localhost modules]# ./configure --with-libdir=/usr/local/lib/php/extensions/no-debug-zts-20060613 --with-php-config=/usr/local/bin/php-config
[root@localhost modules]# make && make install
installing shared extensions:     /usr/local/lib/php/extensions/no-debug-zts-20090626/  ----------这个路径就是php模块扩展的路径
installing header files:          /usr/local/include/php/
[root@localhost modules]# pwd
/usr/src/php-5.3.27/ext/mbstring/modules
[root@localhost modules]# ls 
mbstring.so
接下来就是要修改php.ini了
[root@localhost modules]# vi /usr/local/lib/php.ini
extension=/usr/local/lib/php/extensions/no-debug-zts-20090626/
extension=mbstring.so
加入这两行,然后重启apache
再次访问http://127.0.0.1/phpadmin/index.php
授权一个tt用户
mysql> grant all on *.* to tt@localhost identified by '123';
query ok, 0 rows affected (0.12 sec)
mysql> flush privileges;
query ok, 0 rows affected (0.00 sec)
以tt用户登录
发现报错,缺少 mcrypt 扩展。请检查 php 配
又是模块扩展,那就在打个补丁吧。
[root@localhost mcrypt]# pwd
/usr/src/php-5.3.27/ext/mcrypt
[root@localhost mcrypt]# ls
config.m4   mcrypt.dsp        mcrypt.lo            tests
config.w32  mcrypt_filter.c   mcrypt.o             todo
credits     mcrypt_filter.lo  php_mcrypt_filter.h
mcrypt.c    mcrypt_filter.o   php_mcrypt.h
[root@localhost mcrypt]# phpize;ls
configuring for:
php api version:         20090626
zend module api no:      20090626
zend extension api no:   220090626
acinclude.m4    config.w32        mcrypt.lo
aclocal.m4      credits           mcrypt.o
autom4te.cache  install-sh        missing
build           ltmain.sh         mkinstalldirs
config.guess    makefile.global   php_mcrypt_filter.h
config.h.in     mcrypt.c          php_mcrypt.h
config.m4       mcrypt.dsp        run-tests.php
config.sub      mcrypt_filter.c   tests
configure       mcrypt_filter.lo  todo
configure.in    mcrypt_filter.o
现在就就可以编译了
[root@localhost mcrypt]# ./configure --with-php-config=/usr/local/bin/php-config --with-mcrypt=/usr
[root@localhost mcrypt]# make
[root@localhost mcrypt]# make install
installing shared extensions:     /usr/local/lib/php/extensions/no-debug-zts-20090626/
[root@localhost mcrypt]# ls modules/
mcrypt.so
[root@localhost mcrypt]# vi /usr/local/lib/php.ini
extension=mcrypt.so        ---------------增加这一行
新版本的phpmyadmin 增强了安全性,需要在配置文件设置一个短语密码。否则进入之后会有“配置文件现在需要一个短语密码。”的红色警叹提示。    解决方法:
1、将 phpmyadmin/libraries/config.default.php中的
    $cfg['blowfish_secret'] = ''; 改成 $cfg['blowfish_secret'] = '123456'; (注:其中的’123456′为随意的字符)
[root@localhost libraries]# pwd
/www/phpadmin/libraries
[root@localhost libraries]# vi config.default.php
$cfg['blowfish_secret'] = '123456';
2、在phpmyadmin目录中,打开config.sample.inc.php,18行
$cfg['blowfish_secret'] = ''; 改成 $cfg['blowfish_secret'] = '123456'; (注:其中的’123456′为随意的字符)
这个密码用于cookies的加密,以免多个phpmyadmin或者和其他程序共用cookies时搞混。
    做好以上两步,刷新网页,ok,“配置文件现在需要一个短语密码。”的提示不存在了!
重启apache之后访问没有再报这个错误。
bitscn.com
其它类似信息

推荐信息