• mysql-5.7.11-winx64.zip 安装配置


    1、下载

    http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.11-winx64.zip

    2.解压缩zip包;

    D:Program Filesmysql-5.7.11-winx64

     3.配置环境变量,

    3.1 添加path路径,

    D:Program Filesmysql-5.7.11-winx64in

     3.2.修改mysql-default.ini配置文件,

    # These are commonly set, remove the # and set as required.
    # basedir = .....
    # datadir = .....
    # port = .....
    # server_id = .....

    改为

    # These are commonly set, remove the # and set as required.
     basedir = D:Program Filesmysql-5.7.11-winx64
     datadir = D:Program Filesmysql-5.7.11-winx64Data
     port = 3306
    # server_id = .....

    4.以管理员身份进入命令提示符 cmd

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:Windowssystem32>mysqld --initialize --user=mysql --console
    2016-05-08T02:58:49.494014Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
     deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
    umentation for more details).
    2016-05-08T02:58:49.530016Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'E
    RROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will
    be merged with strict mode in a future release.
    2016-05-08T02:58:49.530016Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not s
    et.
    2016-05-08T02:58:52.348376Z 0 [Warning] InnoDB: New log files created, LSN=45790
    
    2016-05-08T02:58:52.869005Z 0 [Warning] InnoDB: Creating foreign key constraint
    system tables.
    2016-05-08T02:58:53.432037Z 0 [Warning] No existing UUID has been found, so we a
    ssume that this is the first time that this server has been started. Generating
    a new UUID: cc42ac67-14c8-11e6-90e5-08606e8d1296.
    2016-05-08T02:58:53.533043Z 0 [Warning] Gtid table is not ready to be used. Tabl
    e 'mysql.gtid_executed' cannot be opened.
    2016-05-08T02:58:53.791057Z 1 [Note] A temporary password is generated for root@
    localhost: UiS<C(.i(0yg
    
    C:Windowssystem32>D:
    
    D:>cd mysql
    
    D:mysql>
    
    D:mysql>mysqld --install MySQL
    Service successfully installed.
    
    D:mysql>net start mysql
    The MySQL service is starting.
    The MySQL service was started successfully.
    
    
    D:mysql>mysql -u root -p
    Enter password:UiS<C(.i(0yg
    
    set password for root@localhost = password('hxl520');

    windows如何彻底卸载mysql

    1.首先在windows服务中将mysql服务删掉,使用命令 sc delete mysql

    2.在控制面板中卸载掉mysql。

    3.清理mysql安装目录的ini文件。

    4.清理注册表:

    HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesEventlogApplicationMySQL 目录删除

    HKEY_LOCAL_MACHINESYSTEMControlSet002ServicesEventlogApplicationMySQL 目录删除

    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlogApplicationMySQL 目录删除(我卸载的时候没有找到,略过后仍达到完全卸载的目的。)

    5.有一些mysql的数据文件也必须删除干净,比如说:C:Documents and SettingsAll UsersApplication DataMySQL

    6.重启电脑。重新安装即可。

  • 相关阅读:
    bzoj 2483: Pku2279 Mr. Young's Picture Permutations -- 钩子公式
    bzoj 3940: [Usaco2015 Feb]Censoring -- AC自动机
    bzoj 1059: [ZJOI2007]矩阵游戏 -- 二分图匹配
    bzoj 1911: [Apio2010]特别行动队 -- 斜率优化
    bzoj 1433: [ZJOI2009]假期的宿舍 -- 最大流
    bzoj 3944: Sum -- 杜教筛
    bzoj 3872: [Poi2014]Ant colony -- 树形dp+二分
    bzoj 1115: [POI2009]石子游戏Kam -- 博弈论
    (三)shiro的认证
    (二)spring初次遇见shiro
  • 原文地址:https://www.cnblogs.com/huxiaolin/p/5813631.html
Copyright © 2020-2023  润新知