zoukankan      html  css  js  c++  java
  • XAMPP phpmyadmin MYSQL的配置

    1xampp phpmyadmin的配置
    1、打开“路径/phpmyadmin/libraries/config.default.php”,查找相关项并修改为以下内容:

    $cfg['PmaAbsoluteUri'] = 'http://218.206.205.35/phpmyadmin/';
    $cfg['blowfish_secret'] = 'tbkt'; //[87] 密码短语
    $cfg['Servers'][$i]['host'] = $_COOKIE["mysqlhost"]; //主机地址
    $cfg['Servers'][$i]['port'] = $_COOKIE["mysqlport"]; //[115] 端口号
    $cfg['Servers'][$i]['auth_type'] = 'cookie'; //[186] 启用cookie
    $cfg['Servers'][$i]['user'] = $_COOKIE["pma_username"]; // 用户名
    $cfg['Servers'][$i]['password'] = $_COOKIE["pma_password"];
    $cfg['Servers'][$i]['nopassword'] = true; //[250] 密码允许为空
    $cfg['Servers'][$i]['AllowNoPassword'] = true; //[422] 密码允许为空
    $cfg['LoginCookieValidity'] = 86400; //[676] 登录超时设置,默认是1440。86400为一天
    $cfg['VerboseMultiSubmit'] = true; //[721] 允许多台管理
    $cfg['AllowArbitraryServer'] = true; //[721] 允许多台管理
    $cfg['ExecTimeLimit'] = 0;
    $cfg['LoginCookieRecall'] = false;
    $cfg['LoginCookieValidity'] = 60;

    2修改mysql root用户密码
    安装xampp后,如果修改mysql root用户密码,则phpmyadmin无法登陆,需要更新phpmyadmin的相关配置。
    phpmyadmin文件目录在lampp的安装目录下,关键的配置文件共有两个,phpmyadmin/config.inc.php和phpmyadmin/libraries/config.default.php。
    其中config.default.php为系统的默认配置,无需修改,但是各种配置的详细信息、可用选项及各选项值得含义都可从中查找到
    修改mysql密码后,需要更新的文件是config.inc.php文件,确认一下两项配置:
    $cfg['Servers'][$i]['auth_type'] = 'config'; // 从配置文件中获取密码,还可以配成cookie、http等见default文件可知含义。
    $cfg['Servers'][$i]['password'] = 'XXXXX'; // 你新配置的密码

     
    刚安装的XAMPP集成环境的MySQL默认root密码为空
    1.首先用root以空密码从phpmyadmin登录,选择MySQL数据中的user表


    2.使用SQL语句修改root用户的密码  update user set password = PASSWORD('root') where user = 'root' ;

    3.修改phpmyadmin的配置文件,以cookie登录方式,用户名和密码改为root/root,然后重启MySQL服务


  • 相关阅读:
    python-logging配置
    python-装饰器
    python字符串操作
    python集合
    python-列表和元组
    Python 3开发网络爬虫(四): 登录
    python3中No module named 'commands'
    Python 爬虫 (三)
    零基础自学Python 3开发网络爬虫(二): 用到的数据结构简介以及爬虫Ver1.0 alpha
    零基础自学用Python 3开发网络爬虫(一)
  • 原文地址:https://www.cnblogs.com/rosesmall/p/4617668.html
Copyright © 2011-2022 走看看