您的位置:首页 > 编程语言 > PHP开发

phpMyadmin管理MYSQL--安装配置篇

2005-04-25 21:12 579 查看
没碰的东西总觉得特别难-_-!
安装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,配置完成
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: