xfwg 发表于 2007 年 1 月 17 日 21:56:31

phpamyadmin

装好它`为什么直接登陆`不需要输入帐号密码就可以进入`
请问怎么设置,
还有怎么创建MYSQL用户
谁帮我下
QQ378818099

coconut 发表于 2007 年 1 月 17 日 22:17:59

以下是在FreeBSD作業系統作法(Windows下也可以)如果你已經安裝好MySQL

修改 config.inc.php


//找到
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
//改成
//如果这儿不添的话.他会提示你"配置文件现在需要绝密的短语密码(blowfish_secret)。"
$cfg['blowfish_secret'] = 'coconut'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
//'coconut'这个你随便写.不一定是root的密码..

//继续找
$cfg['Servers'][$i]['controluser'] = 'pmausr';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';
//找到这句改成
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '';

//打开http://ip/phpMyAdmin
//欢迎使用 phpMyAdmin 2.9.0.2
//Language GB2312
//登入
//登入名称:
// 密码:
//您直接输入root回车就可以.
//您会看到...
# 显示 MySQL 的运行信息
# 显示 MySQL 的系统变量 文档
# 进程 文档
# 字符集和整理
# Storage Engines
# Reload privileges 文档
# 权限
# 数据库
//点权限
//root          localhost          否         ALL PRIVILEGES         是          编辑权限
//更改密码 执行
//刷新phpMyAdmin页面


新建資料庫進入phpMyAdmin內即可,但要有權限(簡單說MySQL是你安裝的)
页: [1]
查看完整版本: phpamyadmin