先到下载中心下载PHPmyadmin软件,然后上传到wwwroot等根目录下,配置好config.ini.php文件。
修改config.inc.php这个文件,把下面几行代码中加粗的改掉,加粗的内容可以在数据库管理里面找到。
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address (略) $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)? $cfg['Servers'][$i]['user'] = 'username'; // MySQL user $cfg['Servers'][$i]['password'] = 'password'; // MySQL password (only needed // with 'config' auth_type) $cfg['Servers'][$i]['only_db'] = 'database'; // If set to a db-name, only // this db is displayed in left frame
|