隨筆 - 18, 文章 - 0, 評論 - 8, 引用 - 0

          導航

          <2017年7月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          常用鏈接

          留言簿(2)

          隨筆分類(17)

          隨筆檔案(18)

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          mysql 5.7 for windows安裝過程

          環境說明:

          OSwindows 7 64bit Databasemysql-5.7.18-winx64 Noinstall版本

           

          1. 解壓Mysql安裝目錄

          2. 編寫my.ini配置文件

          3. mysqld --defaults-file=../my.ini --initialize

          4. ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';

          5. mysql –u root –p

          6. 密碼在logs/*.err日志中

           
          my.ini文件內容

           1 # my.ini文件內容
           2 # For advice on how to change settings please see
           3 # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
           4 # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
           5 # *** default location during install, and will be replaced if you
           6 # *** upgrade to a newer version of MySQL.
           7 
           8 [mysqld]
           9 
          10 # Remove leading # and set to the amount of RAM for the most important data
          11 # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
          12 # innodb_buffer_pool_size = 128M
          13 
          14 # Remove leading # to turn on a very important data integrity option: logging
          15 # changes to the binary log between backups.
          16 # log_bin
          17 
          18 # These are commonly set, remove the # and set as required.
          19 basedir=D:\\mysql-5.7.18-winx64
          20 datadir=D:\\mysql-5.7.18-winx64\\data
          21 # port = ..
          22 # server_id = ..
          23 
          24 
          25 # Remove leading # to set options mainly useful for reporting servers.
          26 # The server defaults are faster for transactions and fast SELECTs.
          27 # Adjust sizes as needed, experiment to find the optimal values.
          28 # join_buffer_size = 128M
          29 # sort_buffer_size = 2M
          30 # read_rnd_buffer_size = 2M 
          31 
          32 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
          33 
          34 long_query_time=0.1
          35 slow_query_log=on
          36 slow_query_log_file=D:\\mysql-5.7.18-winx64\\logs\\mysqlslow.log
          37 

          posted on 2017-07-10 00:53 丑男 閱讀(213) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           
          主站蜘蛛池模板: 哈密市| 甘南县| 信宜市| 北票市| 都安| 璧山县| 大姚县| 阜宁县| 沾化县| 泗阳县| 田林县| 闸北区| 博客| 电白县| 修水县| 微博| 南阳市| 定南县| 永登县| 宝丰县| 定兴县| 色达县| 雷波县| 清丰县| 晴隆县| 喀喇沁旗| 武胜县| 通河县| 郧西县| 利川市| 涟源市| 武隆县| 万盛区| 永城市| 余干县| 阜阳市| 无棣县| 西乌珠穆沁旗| 麻江县| 远安县| 晋城|