咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

centos下安装配置phpMyAdmin的方法步骤

2018-05-29 11:55:26 12757次

centos下安装配置phpMyAdmin的方法步骤


一、在phpMyAdmin官方网站http://www.landui.com/downloads/  下载源码包

cd /usr/local/src
 
wget https://www.landui.com/phpMyAdmin/4.6.0/phpMyAdmin-4.6.0-all-languages.tar.gz
 
tar zxvf phpMyAdmin-4.6.0-all-languages.tar.gz

二、将phpMyAdmin-4.6.0-all-languages放到web目录下

mv phpMyAdmin-4.6.0-all-languages /usr/local/nginx/html
//重命名
mv phpMyAdmin-4.6.0-all-languages phpMyAdmin

三、配置

cd /usr/local/nginx/html/phpMyAdmin/libraries
vim config.default.php
//修改以下地方
// localhost => 127.0.0.1
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';

四、访问 

本项目在放在nginx测试目录html下 

在浏览器中输入http://www.landui.com/phpMyAdmin 

然后输入用户名、密码即可

五、错误信息 

1、the local server's socket is not correctly configured 

解决方案如下,在配置文件中修改host 

// localhost => 127.0.0.1 
$cfg[‘Servers'][$i][‘host'] = ‘127.0.0.1';


首页
最新活动
个人中心