在phpMyAdmin官方網站下載源碼包:php
# cd /usr/local/src/html
# wget https://files.phpmyadmin.net/phpMyAdmin/4.6.0/phpMyAdmin-4.6.0-all-languages.tar.gzweb
# tar zxvf phpMyAdmin-4.6.0-all-languages.tar.gzsocket
# lside
phpMyAdmin-4.6.0-all-languages phpMyAdmin-4.6.0-all-languages.tar.gz網站
移動到web頁面下並重命名:spa
# mv phpMyAdmin-4.6.0-all-languages /var/www/html/vhost1/.net
# cd /var/www/html/vhost1/orm
# mv phpMyAdmin-4.6.0-all-languages/ phpMyAdmin/server
# ls
index.php info.php phpMyAdmin r2.php search_result.php
修改配置:
# cd phpMyAdmin/libraries/
# vi ./config.default.php
修改:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'password';
http://127.0.0.1:8331/phpMyAdmin/
the local server’s socket is not correctly configured 解決方案以下,在配置文件中修改host // localhost => 127.0.0.1 $cfg[‘Servers’][$i][‘host’] = ‘127.0.0.1’;