標籤:phpmyadmin bugfree xampp 密碼配置 登入認證
導言:在學習bugfree的時候,很多學員反映需要遠端存取phpmyadmin,但是配置好外網訪問後,發現phpmyadmin不需要登入就能進去,感到不安全,於是有了一下的配置,協助大家設定密碼和正常的使用者名稱和帳號登入phpmyadmin。
步驟如下:
1、首先建議大家檢查一下自己是否設定了一系列的安全帳號,進入linux系統的命令終端,輸入:sudo /opt/lampp/lampp security;
2、然後就會出現一些列的帳號設定,大家一路設定下去就行,總體設定如下所示:
XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] yes (1)
XAMPP: Password: ******
XAMPP: Password (again): ******
XAMPP: Password protection active. Please use ‘lampp‘ as user name!
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that‘s not recommended. Do you want me to turn it off? [yes] yes
XAMPP: Turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password: ******
XAMPP: Password (again): ******
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin‘s pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the passworde somewhere down to make sure you won‘t forget it!!!
XAMPP: Password: ******
XAMPP: Password (again): ******
XAMPP: Setting new MySQL root password.
XAMPP: Setting phpMyAdmin‘s root password to the new one.
XAMPP: The FTP password for user ‘nobody‘ is still set to ‘lampp‘.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password: ******
XAMPP: Password (again): ******
XAMPP: Reload ProFTPD...
XAMPP: Done.
3、如果設定完畢之後(最好先重啟lampp服務),還是不能通過帳號和密碼訪問phpmyadmin,那麼需要修改一個檔案。
開啟phpMyAdmin根目錄下的config.inc.php,按照以下行修改就可以了:
把$cfgServers[$i][‘auth_type‘]= ‘config‘;修改成:
$cfgServers[$i][‘auth_type‘]= ‘cookie‘;
4、儲存檔案,重新訪問phpmyadmin就可以使用帳號的密碼了。
如所示:
650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/84/2C/wKiom1eHUw3DMV-rAABWogcNKjc336.png-wh_500x0-wm_3-wmp_4-s_1756926412.png" title="phpmyadmin登入頁面" alt="wKiom1eHUw3DMV-rAABWogcNKjc336.png-wh_50" />
說明:這裡的配置參數共有三種,分別為cookie,config和http;
1)、cookie : 使用cookie登入認證, 顯示一個web登入頁面,輸入mysql的使用者名稱和密碼,然後進入管理介面。一般情況下,都是使用的cookie方式;
2)、config: 把mysql使用者名稱和密碼直接填入config.inc.php,不顯示登入介面,直接進入管理介面;
3)、http : 使用HTTP認證,顯示一個windows登入框,輸入mysql的使用者名稱和密碼,然和進入管理。如果是使用IIS+PHP的方式,則HTTP認證是無效的,這個功能只能在apache伺服器環境下使用。
BugFree軟體測試載入器之Linux實戰課程
http://edu.51cto.com/course/course_id-4855.html
本文出自 “昊洋_棲息處” 部落格,請務必保留此出處http://zdytesting.blog.51cto.com/5811414/1826440
如何設定bugfree使用中的phpmyadmin訪問密碼