没碰的东西总觉得特别难-_-!
安装apache php省略
下载phpMyAdmin解压
[root@TSD soft]# tar -zxvf phpMyAdmin-2.6.2.tar.gz
[root@TSD soft]# mysql -u root -p
mysql> grant all on * to test@'localhost' identified by "test";
Query OK, 0 rows affected (0.00 sec)
注释:grant all表示所有权限 on * 所有表 新建用户test密码test
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
刷新用户表
打开phpmyadmin里配置
$cfg['Servers'][$i]['user'] = 'test'; // MySQL user
$cfg['Servers'][$i]['password'] = 'test'; // MySQL password (only needed
只需要配置用户密码以及认证模式:
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
http使用.htpaccess模式认证、config 用于本地调试使用、cookie用与远程调试
完成保存。
http://localhost/phpMyAdmin登陆
ok,配置完成