下载安装包
配置nginx
server {
listen 8230;
server_name localhost;
root /the/home/of/phpMyAdmin;
location ~ \.php$ {
fastcgi_pass "下游服务器地址";
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
配置phpmyadmin
$i++;
$cfg['Servers'][$i]['auth_type'] = 'config';
//mysql host and port
$cfg['Servers'][$i]['host'] = '10.92.61.119';
$cfg['Servers'][$i]['port'] = '8866';
//mysql user and password
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Servers'][$i]['nopassword'] = true;