首页 > 代码库 > phpMyAdmin

phpMyAdmin

  • 在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’;

本文出自 “勤能补拙” 博客,请务必保留此出处http://echoroot.blog.51cto.com/11804540/1953821

phpMyAdmin