1. <var id="fe6gj"></var>

    <rp id="fe6gj"><nav id="fe6gj"></nav></rp>

    <noframes id="fe6gj"><cite id="fe6gj"></cite>

    <ins id="fe6gj"><button id="fe6gj"><p id="fe6gj"></p></button></ins>
    1. <tt id="fe6gj"><i id="fe6gj"><sub id="fe6gj"></sub></i></tt>
        始創于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業
        • 60秒人工響應
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補償
        您的位置: 網站首頁 > 幫助中心>文章內容

        更改mysql的缺省數據庫引擎表的方法

        發布時間:  2012/8/3 17:56:46

        更改mysql的缺省數據庫引擎表的方法
        一般安裝系統默認是INNODB
        default-storage-engine=INNODB
        其他有
        #*** INNODB Specific options ***
        # Use this option if you have a MySQL server with InnoDB support enabled
        # but you do not plan to use it. This will save memory and disk space
        -
         

        # and speed up some things.
        #skip-innodb
        # Additional memory pool that is used by InnoDB to store metadata
        # information. If InnoDB requires more memory for this purpose it will
        # start to allocate it from the OS. As this is fast enough on most
        # recent operating systems, you normally do not need to change this
        # value. SHOW INNODB STATUS will display the current amount used.
        innodb_additional_mem_pool_size=2M
        # If set to 1, InnoDB will flush (fsync) the transaction logs to the
        # disk at each commit, which offers full ACID behavior. If you are
        # willing to compromise this safety, and you are running small
        # transactions, you may set this to 0 or 2 to reduce disk I/O to the
        # logs. Value 0 means that the log is only written to the log file and
        # the log file flushed to disk approximately once per second. Value 2
        # means the log is written to the log file at each commit, but the log
        # file is only flushed to disk approximately once per second.
        innodb_flush_log_at_trx_commit=1
        # The size of the buffer InnoDB uses for buffering log data. As soon as
        # it is full, InnoDB will have to flush it to disk. As it is flushed
        # once per second anyway, it does not make sense to have it very large
        # (even with long transactions).
        innodb_log_buffer_size=1M
        # InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
        # row data. The bigger you set this the less disk I/O is needed to
        # access data in tables. On a dedicated database server you may set this
        # parameter up to 80% of the machine physical memory size. Do not set it
        # too large, though, because competition of the physical memory may
        # cause paging in the operating system. Note that on 32bit systems you
        # might be limited to 2-3.5G of user level memory per process, so do not
        # set it too high.
        innodb_buffer_pool_size=8M
        # Size of each log file in a log group. You should set the combined size
        # of log files to about 25%-100% of your buffer pool size to avoid
        # unneeded buffer pool flush activity on log file overwrite. However,
        # note that a larger logfile size will increase the time needed for the
        # recovery process.
        innodb_log_file_size=10M
        # Number of threads allowed inside the InnoDB kernel. The optimal value
        # depends highly on the application, hardware as well as the OS
        # scheduler properties. A too high value may lead to thread thrashing.
        innodb_thread_concurrency=8
        將他改為myisam

         使用一個指定的存儲引擎

          你可以使用很多方法指定一個要使用的存儲引擎。最簡單的方法是,如果你喜歡一種能滿足你的大多數數據庫需求的存儲引擎,你可以在MySQL設置文件中設置一個默認的引擎類型(使用storage_engine 選項)或者在啟動數據庫服務器時在命令行后面加上--default-storage-engine或--default-table-type選項 。

          更靈活的方式是在隨MySQL服務器發布同時提供的MySQL客戶端時指定使用的存儲引擎。最直接的方式是在創建表時指定存儲引擎的類型,向下面這樣:

          CREATE TABLE mytable (id int, title char(20)) ENGINE = INNODB


        本文出自:億恩科技【www.endtimedelusion.com】

        服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

      1. 您可能在找
      2. 億恩北京公司:
      3. 經營性ICP/ISP證:京B2-20150015
      4. 億恩鄭州公司:
      5. 經營性ICP/ISP/IDC證:豫B1.B2-20060070
      6. 億恩南昌公司:
      7. 經營性ICP/ISP證:贛B2-20080012
      8. 服務器/云主機 24小時售后服務電話:0371-60135900
      9. 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
      10. 專注服務器托管17年
        掃掃關注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區翠竹街1號總部企業基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網安備41019702002023號
          0
         
         
         
         

        0371-60135900
        7*24小時客服服務熱線

         
         
        av不卡不卡在线观看_最近2018年中文字幕_亚洲欧美一区二区三区_一级A爱做片免费观看国产_日韩在线中文天天更新_伊人中文无码在线