1 Installation and Operating environment VC + + 2013
2 Downloads Https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.19-winx64.zip
3 Decompression
4 environment variables, advanced system settings, properties---My computer. Click Path in the system variable and select Edit. Put "c:\mysql-5.7.19-winx64\bin;
5 Configuring C:\mysql-5.7.19-winx64\my.ini
6 Initializing database: mysqld--initialize-insecure--user=mysql
7 Installation Services C:\mysql-5.7.19-winx64\bin\mysqld--install MySQL--defaults-file=c:\mysql-5.7.19-winx64\my.ini
8 Startup net start MySQL
Attached: My.ini
# Other default tuning values# MySQL Server Instance Configuration file#----------------------------------------------- -----------------------# Generated by the MySQL Server Instance Configuration wizard### installation instructions#------ ----------------------------------------------------------------# # on Linux Your can copy this file to/etc/my.cnf to set G Lobal options,# mysql-data-dir/my.cnf to set server-specific options# (@[email protected] for this installation) or T o# ~/.my.cnf to set user-specific options.## on Windows I should keep this file in the installation directory # of your Server (e.g. C:\Program Files\mysql\mysql server x.y). to# Make sure the server reads the config file with the startup option # "--defaults-file". # # To Run Run ' the server from the ' command line, ' execute this ' command line shell, e.g.# mysqld--defaults-file= "c:\p Rogram files\mysql\mysql Server X.y\my.ini "# to install the server as a Windows service manually, execute this in a # com MansD line Shell, e.g.# mysqld--install mysqlxy--defaults-file= "C:\Program files\mysql\mysql Server X.y\my.ini" # # and then E Xecute this in a command line shell to start of the server, e.g.# net start mysqlxy### guildlines for editing this file#---- ------------------------------------------------------------------# # In this file, you can use any long options that the P Rogram supports.# If you want to know the options a program supports, start the program# with the '--help ' option.## more Detailed information about the individual options can also be# found in the manual.## for advice on what to change settings Please see# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html### CLIENT section#---------- ------------------------------------------------------------# # The following options would be read by MySQL client applications.# Note that only the client applications shipped by MySQL is guaranteed# to the read this section. If you want your own MySQL client program to# honor theSE values, need to specify it as an option during the# MySQL client library initialization.#[client]no-beep# pipe# Soc ket=mysqlport=3306[mysql]default-character-set=utf8# SERVER section#-------------------------------------------- --------------------------# # The following options would be read by the MySQL Server. Make sure that# you had installed the server correctly (see above) so it reads this # file.## server_type=3[mysqld]# the Next three options is mutually exclusive to Server_port below.# skip-networking# enable-named-pipe# The pipe the MySQL Se RVer would use# socket=mysql# the TCP/IP Port the MySQL Server would listen onport=3306# Path to installation directory. All paths is usually resolved relative to This.basedir= "c:\mysql-5.7.19-winx64" # Path to the database rootdatadir= "C:\mys Ql-5.7.19-winx64\data\ "# The default character set that would be used when a new schema or table is# created and no charact Er set is definedcharacter-set-server=utf8# the default storage engine thAt would be used when create new tables whendefault-storage-engine=innodb# Set the SQL mode to strictsql-mode= "Strict_trans _tables,no_auto_create_user,no_engine_substitution "# Enable Windows authentication# Plugin-load=authentication_ windows.dll# General and Slow logging.log-output=nonegeneral-log=0general_log_file= "Lovely-pc.log" slow-query-log= 0slow_query_log_file= "Lovely-pc-slow.log" long_query_time=10# Binary logging.# log-bin# Error Logging.log-error= " Lovely-pc.err "# The maximum amount of concurrent sessions the MySQL server will# Allow. One of these connections'll be reserved-a user with# SUPER privileges to allow the administrator to login even if th e# connection limit have been reached.max_connections=100# Query cache is used to cache SELECT results and later return the m# without actual executing the same query once again. Having the query# cache enabled may result in significant speed improvements, if your# has a lot of identical queries and Rarely changing tables. See the# "Qcache_lowmem_prunes" status variable to check if the current value# are high enough for your load.# note:in case your T Ables change very often or if your queries are# textually different every time, the query cache could result in a# slowdown Instead of a performance improvement.query_cache_size=0# the number of open tables for all threads. Increasing this value# increases the number of the file descriptors that mysqld requires.# Therefore you had to do sure to Set the amount of open files# allowed to at least 4096 in the variable "open-files-limit" in# sections [mysqld_safe]table_o pen_cache=2000# Maximum size for internal (in-memory) temporary tables. If a table# grows larger than this value, it's automatically converted to disk# based table This limitation was for a sing Le table. There can many# of them.tmp_table_size=28m# how many threads we should keep in a cache for reuse. When a client# disconnects, the client ' s threads is put in the cache if there aren ' t# more than THREAD_CACHe_size threads from before. This greatly reduces# the amount of the thread creations needed if you had a lot of new# connections. (Normally this doesn ' t give a notable performance# improvement if you have a good thread implementation.) thread_cache_size=9#*** MyISAM specific options# The maximum size of the temporary file MySQL is allowed to use while# Rec Reating the index (during REPAIR, ALTER TABLE or LOAD DATA infile.# If The file-size would is bigger than this, the index Would be created# through the key cache (which was slower). myisam_max_sort_file_size=100g# If The temporary file used for FA St Index creation would is bigger# than using the key cache by the amount specified here and then prefer the# key cache Metho D. This was mainly used to force long character keys in# large tables to use the slower key cache method to create the IND ex.myisam_sort_buffer_size=54m# size of the Key buffer, used to cache index blocks for MyISAM tables.# does not set it large R than 30% of your available memorY, as some memory# is also required by the OS to cache rows. Even if you ' re not using# MyISAM tables, you should still set it to 8-64m as it would also be# used for internal temporary Disk tables.key_buffer_size=8m# size of the buffer used for doing full table scans of MyISAM tables.# allocated per thread If a full scan was needed.read_buffer_size=64kread_rnd_buffer_size=256k# this buffer was allocated when MySQL needs to Reb Uild the index in# REPAIR, Optimze, ALTER table statements as well as in LOAD DATA infile# to an empty table. It is allocated per thread so being careful with# large settings.sort_buffer_size=256k#*** INNODB specific options ***# Innod b_data_home_dir=0.0# Use the This option if you have a MySQL server with InnoDB enabled# . This'll save memory and disk space# and speed up some things.# skip-innodb# Additional memory pool that's used by Innod B to store metadata# information. If InnoDB requires more memory for this purpose it will# sTart to allocate it from the OS. As this is fast enough in most# recent operating systems, you normally does not need to change this# value. SHOW INNODB STATUS would display the current amount used. #innodb_additional_mem_pool_size =4m# If set to 1, INNODB would flus H (fsync) the transaction logs to the# disk at each commit, which offers full ACID behavior. If you are# willing to compromise the safety, and you is running small# transactions, you could set this to 0 or 2 to redu Ce disk I/O to the# logs. Value 0 means that the log was only written to the log file and# the log file flushed to disk approximately once per second . Value * means the log is written to the log file at each commit, but the log# file was only flushed to disk approximately Once per second.innodb_flush_log_at_trx_commit=1# the size of the buffer InnoDB uses for buffering log data. As soon as# it's full, InnoDB'll has to flush it to disk. As it is flushed# once per second anyway, it does does sense to has it very large# (even with long transactions). innodb_log_buffer_size=2m# InnoDB, unlike MyISAM, uses a buffer pool to cache both I Ndexes and# row data. The bigger you set this and the less disk I/O is needed to# access data in tables. On a dedicated database server, set this# parameter up to 80% of the machine physical memory size. Do not set it# too large, though, because competition of the physical memory may# cause paging in the operating system. Note that on 32bit systems you# might is limited to 2-3.5g of the user level memory per process, so do not# set it too high.in nodb_buffer_pool_size=149m# size of each log file in a log group. You should set the combined size# of logs files to about 25%-100% of your buffer pool size to avoid# unneeded buffer pool F Lush activity on log file overwrite. however,# Note that a larger logfile size would increase the time needed for the# recovery process.innodb_log_file_size=48m # Number of threads allowed inside the InnoDB kernel. The optimal value# dependsHighly on the application, hardware as well as the os# Scheduler properties. A too high value may leads to thread thrashing.innodb_thread_concurrency=9# the increment size (in MB) for extending the SI Ze of an auto-extend InnoDB system tablespace file when it becomes full.innodb_autoextend_increment=64m# the number of Reg Ions the InnoDB buffer pool is divided into.# for systems with buffer pools in the Multi-gigabyte range, dividing the Buffer pool into separate instances can improve concurrency,# by reducing contention as different threads read and write To cached pages.innodb_buffer_pool_instances=8# determines the number of threads that can enter InnoDB Concurrently.innodb _concurrency_tickets=5000# specifies how long in milliseconds (ms) a block inserted to the old sublist must stay there a fter its first access before# it can is moved to the new sublist.innodb_old_blocks_time=1000# it specifies the maximum num ber of. ibd files, MySQL can keep open at one time. The minimum VAlue is 10.innodb_open_files=300# If this variable is enabled, InnoDB updates statistics during metadata Statements.inno db_stats_on_metadata=0# when Innodb_file_per_table was enabled (the default in 5.6.6 and higher), InnoDB stores the data an d indexes for each newly created table# in a separate. ibd file, rather than in the system tablespace.innodb_file_per_tabl e=1# Use the following list of values:0 for CRC32, 1 for STRICT_CRC32, 2 for InnoDB, 3 for Strict_innodb, 4 for none, 5 F or strict_none.innodb_checksum_algorithm=0# the number of outstanding connection requests MySQL can have.# this option is Useful when the main MySQL thread gets many connection requests in a very short time.# It then takes some time (although V Ery little) for the main thread to check the connection and start a new thread.# the Back_log value indicates how many req Uests can stacked during this short time before MySQL momentarily# stops answering new requests.# your need to increase If you expectA large number of connections in a short period of time.back_log=70# If the is set to a nonzero value, all tables is CLO Sed every flush_time seconds to free the resources and# synchronize unflushed data to disk.# this option is best used only On systems with minimal resources.flush_time=0# the minimum a size of the buffer that's used for plain index scans, range I Ndex scans, and joins that does not use# indexes and thus perform full table scans.join_buffer_size=256k# the maximum size O F one packet or any generated or intermediate string, or any parameter sent by the# Mysql_stmt_send_long_data () C API func tion.max_allowed_packet=4m# If More than this many successive connection requests from a host is interrupted without a su Ccessful connection,# the server blocks that host from performing further connections.max_connect_errors=100# changes the Number of file descriptors available to mysqld.# you should try increasing the value of this option if mysqld gives you th E Error "Too many open FIles ". open_files_limit=4110# Set the query cache type. 0 for OFF, 1 for on and 2 for demand.query_cache_type=0# If you see many sort_merge_passes per second in SHOW GLOBAL Statu S output, you can consider increasing the# sort_buffer_size value to speed up ORDER by or GROUP by operations that cannot be improved with query optimization# or improved indexing.sort_buffer_size=256k# the number of table definitions (from. fr m files) that can is stored in the definition cache.# If your use a large number of tables, you can create a large table de Finition cache to speed up opening of tables.#, the table definition cache takes less space and does don't use file Descripto RS, unlike the normal table cache.# the minimum and default values are both 400.table_definition_cache=1400# specify the M Aximum size of a row-based binary log event, in bytes.# Rows is grouped into events smaller than this size if possible. The value should is a multiple of 256.binlog_row_event_max_size=8k# If the value of this VarIable is greater than 0, a replication slave synchronizes it master.info file to disk.# (using Fdatasync ()) after every s Ync_master_info events.sync_master_info=10000# If The value of this variable is greater than 0, the MySQL server Synchroni zes its relay log to disk.# (using Fdatasync ()) after every Sync_relay_log writes to the relay log.sync_relay_log=10000# I f The value of this variable are greater than 0, a replication slave synchronizes its relay-log.info file to disk.# (using Fdatasync ()) after every sync_relay_log_info transactions.sync_relay_log_info=10000
Win system Mysql 5.7.19 zip installation