phpMyadmin管理MYSQL--安装配置篇

没碰的东西总觉得特别难-_-!

安装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,配置完成

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值