• MySQL安装


    下载MySQL绿色版

    去官方下载mysql。,我下载的是 mysql-5.6.27-winx64,下载后解压缩到D:盘。

    安装MySQL服务

    • 拷贝my-default.ini重命名为my.ini,修改内容。
    # 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.
    
    [mysqld]
    
    # 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.
    #mysql根目录
     basedir ="D:/mysql-5.6.27-winx64"
    #数据文件存放目录
     datadir ="D:/mysql-5.6.27-winx64/data"
    # port = .....   端口,默认3306
    # server_id = .....  服务实例的唯一标识
    
    #设置数据库引擎为INNODB
    default-storage-engine=INNODB
    
    
    # 设置mysql服务器编码
    character_set_server=utf8
    
    # 设置mysql服务器字符集
    collation-server=utf8_general_ci
    # port = 3306
    # server_id = 1
    
    [client]
    default-character-set = utf8
    
    [WinMySQLAdmin]
    Server = "D:mysql-5.6.27-winx64inmysqladmin.exe"
    
    
    

    执行 mysqld安装,再执行 net start MySQL5服务。

    修改mysl用户名密码


    如上,数据库登陆成功。

  • 相关阅读:
    推荐网页布局设计流程
    (IE6下)png透明问题分析及解决办法
    [收藏]几个常用的用正则表达式验证字符串的函数
    JavaScript 操作 Cookie
    javascript 获取控件的绝对位置
    Css命名规范
    掌握JavaScript语言的思想前提
    高效的Javascript 字符串操作类
    常用正则表达式
    简单的dom遍历
  • 原文地址:https://www.cnblogs.com/tonyY/p/4872710.html
Copyright © 2020-2023  润新知