windows版mysql配置--my.ini


完整配置如下:

#  power by phpStudy  2014  www.phpStudy.net  官網下載最新版

[client]
port=3306

[mysql]


[mysqld]
port=3306
basedir="D:/soft/phpStudy/MySQL/"
datadir="D:/soft/phpStudy/MySQL/data/"
character-set-client-handshake=FALSE
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci
default-storage-engine=InnoDB
init_connect='set names utf8mb4'
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=512

query_cache_size=0
table_cache=256
tmp_table_size=18M

thread_cache_size=8
myisam_max_sort_file_size=64G
myisam_sort_buffer_size=35M
key_buffer_size=25M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K

innodb_additional_mem_pool_size=2M

innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M

innodb_buffer_pool_size=47M
innodb_log_file_size=24M
innodb_thread_concurrency=8
lower_case_table_names=0

  以上配置,設置數據庫編碼為utf8mb4,客戶端服務端都是這個編碼,以及表名區分大小寫(具體可看lower_case_table_name)!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM