zoukankan      html  css  js  c++  java
  • my.cnf配置文件

    [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
    #
    # 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
    datadir=/mysql_data
    socket=/var/lib/mysql/mysql.sock
    character-set-server = utf8

    # Disabling symbolic-links is recommended to prevent assorted security risks
    symbolic-links=0

    log-error=/var/log/mysql/mysqld.log
    pid-file=/var/run/mysql/mysqld.pid

    innodb_buffer_pool_size = 16G
    innodb_buffer_pool_instances = 16
    max_allowed_packet = 64M
    max_heap_table_size = 256M
    read_rnd_buffer_size = 2M
    sort_buffer_size = 2M
    join_buffer_size= 128M
    #query_cache_size =
    innodb_file_per_table = 1
    lower_case_table_names = 1
    log_bin_trust_function_creators=1

    [mysqld]
    server-id=1
    log-bin=mysql-bin
    log-slave-updates
    binlog-ignore-db = mysql
    binlog-ignore-db = information_schema
    binlog-ignore-db = performance_schema
    replicate-wild-ignore-table = mysql.%
    replicate-wild-ignore-table = information_schema.%
    replicate-wild-ignore-table = performance_schema.%
    expire_logs_days=5
    default-character-set = utf8

  • 相关阅读:
    21天学通 C++(第8版) 内涵目录
    Python Linux系统管理与自动化运维
    零起点PYTHON足彩大数据与机器学习实盘分析
    Elasticsearch探索之路的障碍
    WEB程序设计 第7版
    Qt使用电容屏
    Hi3531D 交叉编译 Qt5.12.8
    Hi3531D 静态交叉编译 Qt5.13.2
    Qt 常用JSON解析示例
    Windows下搭建UBuntu + Qt 5开发环境
  • 原文地址:https://www.cnblogs.com/A121/p/11056767.html
Copyright © 2011-2022 走看看