Take notes for our web server
全部博文(14)
分类: Web开发
2014-12-09 14:20:03
[root@localhost ~]# mv phpMyAdmin-3.2.5-all-languages phpmyadmin
[root@localhost ~]# mv phpmyadmin /usr/share/nginx/html/
[root@localhost ~]# cd /usr/share/nginx/html/phpadmin
[root@localhost phpmyadmin]# cp config.sample.inc.php config.inc.php
[root@localhost phpmyadmin]# vi config.inc.php
cfg['blowfish_secret'] = 'zh888blogcom'//加密密匙,可随意更改
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // 认证方式 (config, http or cookie based)?
$cfg['Servers'][$i]['host'] = 'localhost';// MySQL的主机名称或者IP地址
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysql';
下来是指定系统管理员用户名和密码:
$cfg['Servers'][$i]['controluser'] = 'root';// MySQL用户,如 root
$cfg['Servers'][$i]['controlpass'] = '123456'; // MySQL用户密码
[root@localhost ~]# vi /etc/php.ini
extension = mysql.so