zoukankan      html  css  js  c++  java
  • mysql5.6.27压缩版安装配置指南【个人总结】

     

     
    360云盘下载地址:
    https://yunpan.cn/cPKyugkUcDEmP  访问密码 375b
     
    #my-default.ini文件的编码必须是英文编码(如windows中的ANSI),不能是UTF-8或GBK等
    # For advice on how to change settings please see
    # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
    # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
    # *** default location during install, and will be replaced if you
    # *** upgrade to a newer version of MySQL.
    
    # my-default.ini文件的编码必须是英文编码(如windows中的ANSI),不能是UTF-8或GBK等
    
    [client]
    default-character-set=utf8
    
    [mysqld]
    # 字符集设置
    character-set-server=utf8
    # 允许最大连接数
    max_connections=500
    
    [mysql]
    default-character-set=utf8
    
    # Remove leading # and set to the amount of RAM for the most important data
    # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
    # innodb_buffer_pool_size = 128M
    
    # Remove leading # to turn on a very important data integrity option: logging
    # changes to the binary log between backups.
    # log_bin
    
    # These are commonly set, remove the # and set as required.
    # 系统基本目录
    basedir = D:mysql-5.6.27-winx64
    # 用户数据目录
    datadir = D:mysql-5.6.27-winx64data
    port = 3306
    # server_id = .....
    
    
    # Remove leading # to set options mainly useful for reporting servers.
    # The server defaults are faster for transactions and fast SELECTs.
    # Adjust sizes as needed, experiment to find the optimal values.
    # join_buffer_size = 128M
    # sort_buffer_size = 2M
    # read_rnd_buffer_size = 2M 
    
    sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
    

     

    先配置 MYSQL_HOME 根目录
     
    然后在配置Path变量
    以管理员身份打开cmd窗口,进入到mysql安装目录bin目录  如:D:mysql-5.6.27-winx64in
    执行命令mysqld -install 安装mysql的windows服务 
    或者 输入 mysqld install MySQL --defaults-file="D:mysql-5.6.27-winx64my-default.ini"
    windows服务如下:
    ①先启动mysql服务。
    方法一:
    方法二:
     
    ②设置root用户及其密码
     刚安装完成时root账号默认密码为空,此时可以将密码修改为指定的密码。如:123456
     通常我们将root用户的密码也设置为root,方便记忆。
     
    服务启动成功之后,就可以登录了,输入mysql -u root -p(第一次登录没有密码,直接按回车过),登录成功!
    或 输入 mysql -uroot 第一次登录没有密码也直接回车通过,登录成功!
    接着输入后续命令(从第三行开始):
    c:>mysql uroot
     
    mysql>show databases;
     
    mysql>use mysql;
     
    mysql>UPDATE user SET password=PASSWORD("123456") WHERE user='root';
     
    mysql>FLUSH PRIVILEGES;
     
    mysql>QUIT
     
     
     
  • 相关阅读:
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
  • 原文地址:https://www.cnblogs.com/chunlynn/p/5416373.html
Copyright © 2011-2022 走看看