zoukankan      html  css  js  c++  java
  • EasyPHP 使用经验积累

     MySQL:Plugin 'FEDERATED' is disabled

    在D:Program FilesEasyPHP-DevServer-13.1VC9inariesmysqlmy.ini中:

    # Uncomment the following if you are using InnoDB tables
    #innodb_data_home_dir = C:\mysql\data\
    #innodb_data_file_path = ibdata1:10M:autoextend
    #innodb_log_group_home_dir = C:\mysql\data\

    phpMyAdmin对MySQL密码的配置

    新安装的mysql root密码为空,从命令行执行mysql -u root登陆,然后执行下面的语句可以修改root密码:

    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123pass');

    再登陆则使用 mysql -u root;提示输入密码,输入即可。(2014年1月16日20:46:35)

    这样再次进入phpMyAdmin时,会出错:

    错误
    MySQL 返回: 
    
    #1045 - Access denied for user 'root'@'localhost' (using password: NO) 
    phpMyAdmin 尝试连接到 MySQL 服务器,但服务器拒绝连接。您应该检查配置文件中的主机、用户名和密码,并确认这些信息与 MySQL 服务器管理员所给出的信息一致。

    那是因为登录默认是允许不用密码的,并且MySql初始无root密码。

    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'config';

    这样,可以加上下面这句并写上密码:

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

    但是会不会不安全?并且我安装的现在版本没有这句配置,应该是不推荐吧,毕竟明文保存。继续改:

    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'http';

    这样进入时,浏览器会弹出对话框,输入mysql用户名和密码。

    安装

    EasyPHP-DevServer-13.1VC9 (2014年1月16日20:46:08)

  • 相关阅读:
    查看linux命令类型
    理解bashrc和profile[转载]
    问题:ldconfig
    箭头函数
    闭包函数
    方法
    手把手教你使用百度地图(图解)
    变量作用域与解构赋值
    iterable
    Map和Set
  • 原文地址:https://www.cnblogs.com/gmth/p/3523142.html
Copyright © 2011-2022 走看看