-
在phpMyAdmin官方网站下载源码包:
# cd /usr/local/src/
# wget https://files.phpmyadmin.net/phpMyAdmin/4.6.0/phpMyAdmin-4.6.0-all-languages.tar.gz
# tar zxvf phpMyAdmin-4.6.0-all-languages.tar.gz
# ls
phpMyAdmin-4.6.0-all-languages phpMyAdmin-4.6.0-all-languages.tar.gz
-
移动到web页面下并重命名:
# mv phpMyAdmin-4.6.0-all-languages /var/www/html/vhost1/
# cd /var/www/html/vhost1/
# mv phpMyAdmin-4.6.0-all-languages/ phpMyAdmin/
# 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’;
本文转自echoroot 51CTO博客,原文链接:http://blog.51cto.com/echoroot/1953821,如需转载请自行联系原作者