您好,登錄后才能下訂單哦!
安裝環境:LANMP 1. 下載phpMyAdmin-3.3.7 wget http://sourceforge.net/projects/phpmyadmin/files%2FphpMyAdmin%2F3.3.7%2FphpMyAdmin-3.3.7-all-languages.tar.gz/download 2. tar zxvf phpMyAdmin-3.3.7-all-languages.tar.gz 3. mv phpMyAdmin-3.3.7-all-languages /usr/local/apache/htdocs/phpMyAdmin 4. cd /usr/local/apache/htdocs/ 5. chmod -R 777 phpMyAdmin/ 6. cp config.sample.inc.php config.inc.php 7. vi config.inc.php修改以下的參數為:(如果沒有,可自己添加) $cfg['Servers'][$i]['auth_type'] = 'config'; /* Server parameters */ $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = '1'; 8. 配置apache配置文件:/usr/local/apache/conf/extra/httpd-vhost.conf 添加: <VirtualHost 192.168.1.41:80> ServerAdmin 460518621@qq.com DocumentRoot "/usr/local/apache/htdocs/phpMyAdmin" ServerName mysql.admin ErrorLog "logs/mysql.admin-error_log" CustomLog "logs/mysql.admin-access_log" common </VirtualHost> 9. 重新啟動apache服務 配置好hosts后,就可以通過http://mysql.admin來訪問了。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。