zoukankan      html  css  js  c++  java
  • phpmyadmin 设置密码

    例如 xampp 安装路径为 /opt/lampp/, copy 一份默认的配置
    cp /opt/lampp/phpmyadmin/libraries/config.default.php /opt/lampp/phpmyadmin/conf.inc.php
     
    修改 phpmyadmin/conf.inc.php
    /* Authentication type and info */
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = '';
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['AllowNoPassword'] = true;
    $cfg['Lang'] = '';
    
    /* Bind to the localhost ipv4 address and tcp */
    $cfg['Servers'][$i]['host'] = '127.0.0.1';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    

      

    /**
    * MySQL user
    *
    * @global string $cfg['Servers'][$i]['user']
    */
    $cfg['Servers'][$i]['user'] = 'root';
     
    /**
    * MySQL password (only needed with 'config' auth_type)
    *
    * @global string $cfg['Servers'][$i]['password']
    */
    $cfg['Servers'][$i]['password'] = 'root';
    

      

  • 相关阅读:
    Chap5:操作文件和目录[The Linux Command Line]
    ABC3
    ABC2
    ABC
    Spring MVC / Boot
    Usefull Resources
    [ Learning ] Design Pattens
    [ Learning ] Spring Resources
    URL Resources
    [ Windows BAT Script ] BAT 脚本获取windows权限
  • 原文地址:https://www.cnblogs.com/mingzhanghui/p/9480278.html
Copyright © 2011-2022 走看看