1:首先到 http://www.phpmyadmin.net 下載版本;php
2:下載完畢後,解壓到 web 目錄;//如:參考(/Library/WebServer/Documents/phpMyAdmin)mysql
3:在phpMyAdmin目錄下 建立 config.inc.php 文件web
4:在 config.inc.php 中添加一下代碼 sql
<?php數據庫
/*
* Generated configuration file
* Generated by: phpMyAdmin 4.4.10 setup script
* Date: Fri, 18 Mar 2016 02:57:51 +0000
*/瀏覽器
/* Servers configuration */
$i = 0;cookie
/* Server: phpserver [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'phpserver';
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['port'] = 3306;
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';socket
/* End of servers configuration */tcp
$cfg['blowfish_secret'] = '56eb6e991b1721.23231012';
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>.net
注意:代碼中的 user 和 password 爲數據庫 mysql 的用戶名和密碼;須要按照本身的狀況,酌情修改;
5:完成後再瀏覽器中打開地址:http://localhost/phpmyadmin/index.php 輸入數據庫用戶名和密碼