zoukankan      html  css  js  c++  java
  • mysql免安装方法

    在官网上下载了个mysql-installer-community-5.6.27.0.msi,需要安装环境,检测未通过,很麻烦。之后网上查了资料之后直接下载了个压缩包mysql-5.6.27-winx64.zip。解压之后直接修改配置文件即可使用,不用安装那么麻烦。

    步骤:

    1.解压,我的路径为:E:Program Files (x86)mysqlmysql-5.6.27-winx64

    2.找到该目录下以my-default.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 = "E:Program Files (x86)mysqlmysql-5.6.27-winx64"
      #数据库文件存放目录
      datadir = "E:Program Files (x86)mysqlmysql-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 
    #服务端编码方式
    character-set-server=utf8
     [client]
     #客户端编码方式,最好和服务端保存一致
     loose-default-character-set = utf8
     [WinMySQLadmin]  
     Server = "E:Program Files (x86)mysqlmysql-5.6.27-winx64inmysqld.exe"

    3.注册Mysql服务

      开始——运行——cmd,然后cd到mysql安装目录的bin下面,我的目录就是“E:Program Files(86)mysqlmysql-5.6.22-win32in”,然后执行mysqld -install,提示服务安装成功!运行services.msc一看,确实有一个名为MySQL的服务了,启动它。

    切记应以管理员身份运行,不然会报denied。

  • 相关阅读:
    Appium Python 六:管理应用和Activity
    Loadrunner 11 遇到的问题
    LoadRunner 测试 Mysql
    LoadRunner录制:集合点
    此博客停止更新
    Mac:文件夹树型展示 tree
    Postman-CI集成Jenkins
    Django-数据模型
    Django-简单项目创建
    Django-安装篇
  • 原文地址:https://www.cnblogs.com/345214483-qq/p/4866414.html
Copyright © 2011-2022 走看看