pma这东西,可有可无,navicat或者idea插件也都能相互替代,但是在某些环境下,从Web管理数据库显得尤为方便。
从https://www.phpmyadmin.net/下载pma,解压到mmc中。
nginx配置文件:
server {
listen 999; #自行修改
#server_name www.example.com;
#access_log logs/example.access.log main;
server_name_in_redirect off;
root /web/pma; #按照需求修改
index index.php index.html index.htm;
# WordPress single blog rules.
# Designed to be included in any server {} block.
# This order might seem weird - this is attempted to match last if rules below fail.
# http://wiki.nginx.org/HttpCoreModule
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
# Directives to send expires headers and turn off 404 error logging.
#location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rs