没碰的东西总觉得特别难-_-!
安装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,配置完成
本文介绍了phpMyAdmin和MySQL的配置过程。先安装apache和php,下载并解压phpMyAdmin。接着在MySQL中新建用户并赋予权限,刷新用户表。然后在phpMyAdmin里配置用户、密码和认证模式,最后通过指定网址登陆完成配置。

2905

被折叠的 条评论
为什么被折叠?



