PhpMysqlAdmin怎么修改配置文件

发布时间:2021-09-16

  vim /data/phpMyAdmin/libraries/config.default.php

  #修改为自己浏览器登录访问的url.

  $cfg[PmaAbsoluteUri] =

  #cookie的加密密码,防止模拟cookie破解,自己定义.

  $cfg[blowfish_secret] = agaha1g31j#;

  #Mysql server的ip

  $cfg[Servers][$i][host] = localhost;

  #Mysql的端口.

  $cfg[Servers][$i][port] = 3306;

  #基于cookie认证的方式,默认为cookie.

  $cfg[Servers][$i][auth_type] = cookie;

  #用户随便给,登录phpMyAdmin 用Mysql授权的账户和密码就能登录

  $cfg[Servers][$i][user] = root;

  #密码随便给,www.lu0.com登录phpMyAdmin 用Mysql授权的账户和密码就能登录

  $cfg[Servers][$i][password] = 123456;

  #允许root登录,默认开启.

  $cfg[Servers][$i][AllowRoot] = true;

  #关闭无密码登录,默认为关闭.

  $cfg[Servers][$i][AllowNoPassword] = false;

  #修改PhpMysqlAdmin登录默认的语言.

  $cfg[DefaultLang] = zh;

  

注册即送1000元现金券