phpmyadmin基本配置

下载安装包

phpmyadmin下载地址

配置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;

登录web

http://host:8230

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容