日期:2013-12-17  浏览次数:20461 次

上接http://www.dev-club.com/club/bbs/list.asp?boardid=31&page=5&t=1690132&tp=%5B%u539F%u521B%5DWIN98/ME%u5B89%u88C5APACHE+MYSQL+PHP%u5B89%u88C5%u6700%u7EC8%u6280%u5DE7...

1.当然是解压那文件放在D:里面(就是全站所在的目录),为了方便使用我把文件夹名字改了sqladmin...(这个随你喜欢)
2.进入文件夹打开:config.inc.php
然后修改一点点东西..如下!
$cfgServers[$i]['host']          = 'localhost'; // MySQL hostname
$cfgServers[$i]['port']          = '3306';      // MySQL port - leave blank for default port
$cfgServers[$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfgServers[$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfgServers[$i]['controluser']   = '';          // MySQL control user settings
                                                // (this user must have read-only
$cfgServers[$i]['controlpass']   = '';          // access to the "mysql/user"
                                                // and "mysql/db" tables)
$cfgServers[$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
$cfgServers[$i]['user']          = 'root';      // MySQL user
$cfgServers[$i]['password']      = '这里填上您的SQL所设置的密码';// MySQL password (only needed
                                                // with 'config' auth_type)
$cfgServers[$i]['only_db']       = '';          // If set to a db-name, only
                                                // this db is displayed
                                                // at left frame
                                                // It may also be an array