zoukankan      html  css  js  c++  java
  • Mariadb-10.1.22配置项

    #
    # These groups are read by MariaDB server.
    # Use it for options that only the server (but not clients) should see
    #
    # See the examples of server my.cnf files in /usr/share/mysql/
    #

    # this is read by the standalone daemon and embedded servers
    [server]

    # this is only for the mysqld standalone daemon
    [mysqld]

    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    user=mysql


    port=3306
    max_connections=2048
    event_scheduler=1
    max-allowed-packet=256M


    log_output=FILE
    general_log = 1
    general_log_file = /var/log/mysql/general.log

    slow_query_log=1
    long_query_time=2
    slow_query_log_file=/var/log/mysql/slow.log

    #log-bin=mysql-bin

    log-error=/var/log/mysql/error.log

    character-set-server=utf8

    skip-name-resolve
    #
    # * Galera-related settings
    #
    [galera]
    # Mandatory settings
    wsrep_on=ON
    wsrep_provider=/usr/lib64/galera/libgalera_smm.so
    wsrep_cluster_address="gcomm://172.16.50.36,172.16.50.37,172.16.50.38"
    wsrep_cluster_name="sunlight_stb_cluster"
    wsrep_sst_method=rsync
    binlog_format=row
    default_storage_engine=InnoDB
    innodb_autoinc_lock_mode=2
    wsrep_node_address="172.16.50.36"
    bind-address=0.0.0.0


    #
    # Allow server to accept connections on all interfaces.
    #

    #query_cache_size=0
    #query_cache_type=0
    #
    # Optional setting
    #wsrep_slave_threads=1
    #innodb_flush_log_at_trx_commit=0
    wsrep_retry_autocommit=4
    wsrep_log_conflicts=ON

    #wsrep_notify_cmd=/usr/local/sunlight/python/galera_send_notify.sh


    # this is only for embedded server
    [embedded]

    # This group is only read by MariaDB servers, not by MySQL.
    # If you use the same .cnf file for MySQL and MariaDB,
    # you can put MariaDB-only options here
    [mariadb]

    # This group is only read by MariaDB-10.1 servers.
    # If you use the same .cnf file for MariaDB of different versions,
    # use this group for options that older servers don't understand
    [mariadb-10.1]

  • 相关阅读:
    结对第一次—原型设计(文献摘要热词统计)
    第一次作业-准备篇
    软件工程实践总结
    团队作业第二次—项目选题报告
    软工实践|结对第二次—文献摘要热词统计
    软工实践|结对第一次—原型设计(文献摘要热词统计)
    第一次作业-准备篇
    个人作业——软件工程实践总结作业
    团队作业第二次——项目选题报告
    结对第二次—文献摘要热词统计
  • 原文地址:https://www.cnblogs.com/ralphdc/p/8097536.html
Copyright © 2011-2022 走看看