[client]
port = 3700 #埠
socket = /tmp/mysql.sock #如果主機上執行了多個mysql,請注意區分開來
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
server_id = 13000
port = 3700
user = mysql
character-set-server = utf8mb4
default_storage_engine = innodb
log_timestamps = system
socket = /tmp/mysql.sock #如果主機上執行了多個mysql,請注意區分開來
basedir = /export/local/mysql #資料庫安裝目錄
datadir = /data/mysql/data #資料庫資料目錄
pid-file = /data/mysql/data/mysql.pid #pid檔案路徑
max_connections = 10000
max_connect_errors = 10000
table_open_cache = 1024
max_allowed_packet = 128m
open_files_limit = 65535
lower_case_table_names = 1
innodb_buffer_pool_size = 1024m
innodb_file_per_table = 1
innodb_write_io_threads = 4
innodb_read_io_threads = 4
innodb_purge_threads = 2
innodb_flush_log_at_trx_commit = 1
innodb_log_file_size = 512m
innodb_log_files_in_group = 2
innodb_log_buffer_size = 16m
innodb_max_dirty_pages_pct = 80
innodb_lock_wait_timeout = 30
innodb_data_file_path = ibdata1:10m:autoextend
slow_query_log = 1
long_query_time = 1
log_error = /data/mysql/log/mysql-3700-error.log #日誌路徑
slow_query_log_file = /data/mysql/log/mysql-3700-slow.log
transaction-isolation=read-committed
log-bin = mysql-bin
innodb_flush_log_at_trx_commit = 1
binlog_ignore_db = mysql
lower_case_table_names=1 #不區分大小寫,其實都是轉換成小寫
max_connect_errors=1000
mysql 初始化 MySQL 初始化安裝
client port 3700 埠 socket tmp mysql.sock 如果主機上執行了多個mysql,請注意區分開來 default character set utf8 mysql default character set utf8 mysqld server id 13000 po...
mysql 初始化 MySQL初始化
port 3306 設定mysql的安裝目錄 basedir d php apmw mysql 8.0.17 設定mysql資料庫的資料的存放目錄 datadir d php apmw mysql 8.0.17 data 允許最大連線數 max connections 200 允許連線失敗的次數。m...
mysql 初始化序列 mysql初始化
mysqld nt remove mysql mysqld nt install mysqld initialize insecure user mysql mysqld install mysql root使用者拒絕連線 建立my.ini放在bin下 mysqld 設定3306埠 port 330...