安裝phpMyAdmin
(圖片來(lái)??源網(wǎng)絡(luò ),安裝安裝侵刪)1、安裝安裝下載phpMyAdmin
訪(fǎng)問(wèn)phpMyAdmin官方網(wǎng)站(https://www.phpmyadmi┐(′д`)┌n.net/)下載最新版本的安裝安裝phpMyAdmin,選擇適合您的安裝安裝操作系統的版本,然后點(diǎn)擊“Download”按鈕。安裝安裝
2、安裝安裝解壓文件
將下載的安裝安裝壓縮包解壓到一個(gè)目錄中,C:xamppphpMyAdmin,安裝安裝請根據您的安裝安裝實(shí)際情況選擇合適的目錄。
打開(kāi)解壓后的安裝安裝phpMyAdmin文件夾,找到config.inc.php文件,安裝安裝使用文本編輯器打開(kāi)該文件,安裝安裝找到以下代碼:
$cfg['Servers'][$i]['auth_type'] = 'cookie';$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = '';
修改$cfg['Servers'][$i]['user']和$cfg['Servers'][$??i]['password']為您的安裝安裝MySQL用戶(hù)名和密碼。
$cfg['Servers'][$i]['auth_type'] = 'cookie';$cfg['Servers'][$i]['user'] = 'your_username'??;$cfg['Servers'][$i]['password'] = 'your_password';
4、安裝安裝設置虛擬主機
如果您??使用的是Apache服務(wù)器,需要在A(yíng)pache配置文件中添加一個(gè)虛擬主機,以便在瀏覽器中訪(fǎng)問(wèn)phpMyAdmin,打開(kāi)Apache配置文件(httpd.conf),在文件末尾添加以下內容:
<VirtualHost *:80> DocumentRoot "C:/xampp/htdocs" ServerName localhost <Director(′▽?zhuān)?)y "C:/xampp/htdocs"> Op(???)tions Indexes FollowSymLin(╯°□°)╯ks MultiViews AllowOverride All Require all granted </Directory&gヽ(′ー`)ノt;</VirtualHost>如果您使用的是Nginx服務(wù)器,需要在Nginx配置文件中添加一個(gè)虛擬主機,以便在瀏覽器中訪(fǎng)問(wèn)phpMyAdmin,打開(kāi)Nginx配置文件(nginx.conf),在文件末尾添加以下內容:
server { listen 80; server_name lo??calhost; root C:/xampp/htdocs; index index.html index.htm index.php; location / { try_filヽ(′ー`)ノes $uri $uri/ =404; } location ~ .php$ { include snippets(′?_?`)/fastcgiphp.conf; fastcgi_pa(╯°□°)╯︵ ┻━┻ss unix:/run/php/php7.0fpm.??sock; }}5、重啟服務(wù)器
保存更改后,重啟Apache或Nginx服務(wù)器,現在,您應該可以通ヽ(′▽?zhuān)?ノ過(guò)瀏覽器訪(fǎng)問(wèn)phpMyAdmin了,訪(fǎng)問(wèn)地址為:http:/??/localhost/phpmyadmin,輸入之前設置的用戶(hù)名和密碼,即可登錄??到phpMyAdm(′?`)in。


網(wǎng)站二維碼
導航
電話(huà)
短信
咨詢(xún)
地圖
分享