這篇文章給大家分享的是有關(guān)怎么進(jìn)行加密訪問phpmyadmin的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考。一起跟隨小編過來看看吧。
成都創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供井岡山網(wǎng)站建設(shè)、井岡山做網(wǎng)站、井岡山網(wǎng)站設(shè)計(jì)、井岡山網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、井岡山企業(yè)網(wǎng)站模板建站服務(wù),十年井岡山做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
首先建議大家檢查一下自己是否設(shè)置了一系列的安全賬號(hào),進(jìn)入linux系統(tǒng)的命令終端,輸入:sudo /opt/lampp/lampp security
然后就會(huì)出現(xiàn)一些列的賬號(hào)設(shè)置,大家一路設(shè)置下去就行,總體設(shè)置如下所示:
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.
如果設(shè)置完畢之后(最好先重啟lampp服務(wù)),還是不能通過賬號(hào)和密碼訪問phpmyadmin,那么需要修改一個(gè)文件。
打開phpMyAdmin根目錄下的config.inc.php,按照以下行修改就可以了:
把$cfgServers[$i]['auth_type']= 'config';修改成:
$cfgServers[$i]['auth_type']= 'cookie';
保存文件,重新訪問phpmyadmin就可以使用賬號(hào)的密碼了。
如下圖所示:
感謝各位的閱讀!關(guān)于怎么進(jìn)行加密訪問phpmyadmin就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí)。如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!