Chinaunix首页 | 论坛 | 博客
  • 博客访问: 406631
  • 博文数量: 100
  • 博客积分: 3893
  • 博客等级: 中校
  • 技术积分: 1040
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-11 13:50
文章分类

全部博文(100)

文章存档

2013年(2)

2012年(3)

2011年(8)

2010年(38)

2009年(40)

2008年(9)

我的朋友

分类: Mysql/postgreSQL

2010-12-21 14:39:19


grant all on mysql.* to 'root'@'localhost' identified by 'password';
最后那个password即是你要修改的root用户的密码
在phpmyadmin下的config.inc.php中修改配置文件如下:
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 2.11.10 setup script by Michal Čihař
 * Version: $Id: setup.php 13149 2009-12-07 13:09:09Z nijel $
 * Date: Wed, 28 Jul 2010 10:35:13 GMT
 */

/* Servers configuration */
$i = 0;

/* Server localhost (config:root) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'rootwxl';

$cfg['Servers'][$i]['AllowDeny']['order'] = '';

$cfg['Servers'][$i]['AllowDeny']['rules'] = array();



/* End of servers configuration */

$cfg['UploadDir'] = '/var/www/upload';
$cfg['SaveDir'] = '/var/www/upload';
$cfg['AllowAnywhereRecoding'] = false;
$cfg['DefaultCharset'] = 'gb2312';
$cfg['RecodingEngine'] = 'iconv';
$cfg['IconvExtraParams'] = '//TRANSLIT';
?>
阅读(778) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~