Linux下安裝phpMyAdmin

來源:互聯網
上載者:User

1、到phpMyAdmin官方網站下載。(官方網站:http://www.phpmyadmin.net/)

  下載是有多種格式的,我下載的是zip格式的包

 

2、切換到下載後檔案所在的目錄,利用unzip命令解壓縮這個zip包。

  #unzip phpMyAdmin-3.2.0-beta1-all-languages.zip

  解壓成功後,會在目前的目錄產生一個檔案夾,這個檔案夾裡就是phpMyAdmin的全部源檔案。

 

3、更改phpMyAdmin目錄下的config.sample.inc.php檔案名稱為config.inc.php

4、修改設定檔config.inc.php

  用記事本開啟 config.inc.php
  找到 $cfg['blowfish_secret'] = '';
  改為 $cfg['blowfish_secret'] = 'kayle1901';  //kayle1901這裡好像可以順便寫

  找到 $cfg['Servers'][$i]['controluser'] = 'pma';
  改為 $cfg['Servers'][$i]['controluser'] = 'root';  //root為mysql的使用者名稱

  找到 $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  改為 $cfg['Servers'][$i]['controlpass'] = '123456';  //123456為mysql的密碼


5、開啟瀏覽器,輸入 http://localhost/phpMyAdmin/ 查看效果

  //這個地址根據你的phpMyAdmin所放的目錄和路徑來定


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.