纪念第一天开通,谈一谈我安装mysql遇到的问题

离线安装mysql,我安装的是mysql-8.0.11-winx64,最大的问题是里面没有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/"   #修改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
一定要注意将文件格式改为.ini格式   楼主就是傻了很久
posted @ 2018-09-07 07:01  onOneLight  阅读(94)  评论(0编辑  收藏  举报