phpmysqladmin2.26安裝方法。。。_PHP

來源:互聯網
上載者:User
關鍵字 方法 安裝 cfgServers
mysql安裝

上接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
// of db-names
$cfgServers[$i]['verbose'] = '; // Verbose name for this host - leave blank to show the hostname
$cfgServers[$i]['bookmarkdb'] = '; // Bookmark db - leave blank for no bookmark support
$cfgServers[$i]['bookmarktable'] = '; // Bookmark table - leave blank for no bookmark support
$cfgServers[$i]['relation'] = '; // table to describe the relation between links (see doc)
// - leave blank for no relation-links support

$i++;
$cfgServers[$i]['host'] = 'localhost';
$cfgServers[$i]['port'] = '3306';
$cfgServers[$i]['socket'] = ';
$cfgServers[$i]['connect_type'] = 'tcp';
$cfgServers[$i]['controluser'] = ';
$cfgServers[$i]['controlpass'] = ';
$cfgServers[$i]['auth_type'] = 'config';
$cfgServers[$i]['user'] = 'root';
$cfgServers[$i]['password'] = '這裡填上您的SQL所設定的密碼';
$cfgServers[$i]['only_db'] = ';
$cfgServers[$i]['verbose'] = ';
$cfgServers[$i]['bookmarkdb'] = ';
$cfgServers[$i]['bookmarktable'] = ';
$cfgServers[$i]['relation'] = ';

$i++;
$cfgServers[$i]['host'] = 'localhost';
$cfgServers[$i]['port'] = '3306';
$cfgServers[$i]['socket'] = ';
$cfgServers[$i]['connect_type'] = 'tcp';
$cfgServers[$i]['controluser'] = ';
$cfgServers[$i]['controlpass'] = ';
$cfgServers[$i]['auth_type'] = 'config';
$cfgServers[$i]['user'] = 'root';
$cfgServers[$i]['password'] = '這裡填上您的SQL所設定的密碼';
$cfgServers[$i]['only_db'] = ';
$cfgServers[$i]['verbose'] = ';
$cfgServers[$i]['bookmarkdb'] = ';
$cfgServers[$i]['bookmarktable'] = ';
$cfgServers[$i]['relation'] = ';

如果您是安裝我以前的安裝方法就只要跟著一樣改就可以了...如果使用者名稱您是改了的話那您把root改掉就可以了...
3306為連接埠...連接埠來說就看my.ini是否為3306..如果是就不不用改直接加或更正..如果非3306那麼就直接把連接埠改掉..

然後尋找:$cfgPmaAbsoluteUri修改成:$cfgPmaAbsoluteUri = 'http://localhost/sqladmin/';其中sqladmin就是檔案夾的名稱..

最後一步了:把sqladmin裡面的config.inc.php複製到外面...我這裡就是d:\裡面...您的就看您的全站是放在那裡就修改您的網站所在的目錄..總之就是放在可以看到sqladmin檔案夾外的目錄就可以了..

最後運行http://localhost/sqladmin/index.php如果擔出了網頁就可以了...照理由是英文的...只要把english選項選擇chinese simxxxxx就可以變成中文了...

可能有打錯字!我看看如果沒有錯的話下面就寫著OK!!!

有些人想用2.20,在這裡也說說吧!很簡單...
大多和上面的都一樣...只是不要搜尋$cfgPmaAbsoluteUri.就是說不用更改它就可以了...
  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.