mysql 5.7 installation configuration

 

Reference: https://blog.csdn.net/qq_23994787/article/details/80648731

 

mysql installation problem: Unable to find the MSVCR120.dll, can not continue to execute code reinstall the program may resolve this problem.

Reference: https://blog.csdn.net/zhongaiyisheng_/article/details/85924378

This error is caused due not installed vcredist

Download vcredist Address: https://www.microsoft.com/zh-CN/download/details.aspx?id=40784

Just install the software downloaded to the default location, the installation is successful

And then re-install it successfully solve this problem!

 

my.ini

# MySQL Configure 
 
[ Client ] 
# MySQL client port 
Port = 3306
 [ MySQL ] 
# MySQL default character set encoding 
default-Character-SET = UTF8
 [ mysqld ] 
# MySQL port 
Port = 3306 
# MySQL installation path of 
the basedir = "C: / Extend /development-environment/mysql-5.7.26-winx64/ " 
# MySQL database file path 
datadir =" C: /extend/development-environment/mysql-5.7.26-winx64/data/ " 
# MySQL database default encoding 
character-set -server = UTF8 
# INNODB mode table storage engine with two kinds MyISAM 
default-storage-engine = INNODB 
# the SQL authentication mode 
SQL-mODE= "NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION" 
# maximum number of connections 
max_connections = 512 
# MySQL query cache 
query_cache_size = 0 
# cache size 
table_cache = 256 
size # memory table 
tmp_table_size = 18M 
 
# Maximum number of connection threads 
thread_cache_size = 8 
# When rebuilding the index allowed the maximum size of the temporary file 
myisam_max_sort_file_size = 64G 
reordering # MyISAM table changes required buffer 
myisam_sort_buffer_size = 35M 
# index buffer size 
key_buffer_size = 25M 
# memory buffer size 
read_buffer_size = 64K  
# random read buffer size
read_rnd_buffer_size = 256K 
# sort buffer size 
sort_buffer_size = 256K 
 
 
# the InnoDB storage engine memory space used to store data dictionary information as well as some internal data structures 
innodb_additional_mem_pool_size = 2M 
the innodb_flush_log_at_trx_commit =. 1 
the innodb_log_buffer_size = 1M 
innodb_buffer_pool_size = 47M 
the innodb_log_file_size = 24M 
the innodb_thread_concurrency =. 8 
 
log_bin = ON 
 
#################### primary configuration server from ########################## 
Server-ID # =. 1              # unique database ID, which identifies the number of the master must not be repeated. 
Log-bin # =mysql-bin # open binlog, and specify the file directory and file name prefix 
# binlog-do-db =huanqiu # need to synchronize the database. If multiple synchronization library, you write a few lines in this format to another. If you do not specify a particular library to sync, remove this line represents the synchronization of all libraries (except ignore ignore libraries). 
The ignore-db binlog-# = mysql # mysql system database is not synchronized. If it is not synchronized multiple libraries, write a few lines on this other format; can also be separated in a row, the middle of a comma. 
Sync_binlog # = 1          # ensure that the log is written to the hard disk binlog sync 
# binlog_checksum = none # skipped existing event using the checksum, mysql5.6.5 future versions binlog_checksum = crc32, and low versions are 
 
binlog_checksum = none 
# binlog_format = Mixed # bin log-log format file, set MIXED duplicate primary key can be prevented. 
################################################## ###########

 

Guess you like

Origin www.cnblogs.com/kinome/p/11286357.html