phpMyAdmin

安装phpMyAdmin

version : phpMyAdmin-4.8.5-all-languages.zip

unzip phpMyAdmin-4.8.5-all-languages.zip
mv phpMyAdmin-4.8.5-all-languages /data/apps/

cd /data/apps/phpMyAdmin-4.8.5-all-languages
cp config.sample.inc.php config.inc.php

修改配置文件
$cfg['blowfish_secret'] = 'cca1ff30c680486c3c4afb7cebd0b954'; //设置一个随机数

$cfg['Servers'][$i]['host'] = '127.0.0.1'; //配置host, 不然访问会出现无法连接的错误  ( mysqli_real_connect(): (HY000/2002): No such file or directory )


# 默认端口3306, 按需修改
$cfg['Servers'][$i]['port'] = '3307';

添加 host 到/nginx/conf

重启nginx