美文网首页
phpmyadmin基本配置

phpmyadmin基本配置

作者: f9f73935e28c | 来源:发表于2016-09-30 13:38 被阅读0次

下载安装包

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

相关文章

网友评论

      本文标题:phpmyadmin基本配置

      本文链接:https://www.haomeiwen.com/subject/synlyttx.html