Windows installation mysql-5.7.17-winx64.zip method record < 1. Go to the official website and download the .zip file. 2. Unzip to a folder, here I use D:\MySql 3. Create a new my.ini configuration file under D:\MySql\mysql-5.7.17-winx64 The yellow background color needs to be replaced with your own content, remember!!! #####################Configuration file begins################### [client] default-character-set=utf8 [mysqld] port=3306 basedir = "D:\MySql\mysql-5.7.17-winx64/" datadir = "D:\MySql\mysql-5.7.17-winx64/data/" tmpdir = "D:\MySql\mysql-5.7.17-winx64/data/" socket = "D:\MySql\mysql-5.7.17-winx64/data/mysql.sock" log-error="D:\MySql\mysql-5.7.17-winx64/data/mysql_error.log" #server_id = 2 #skip-locking max_connections=100 table_open_cache=256 query_cache_size=1M tmp_table_size=32M thread_cache_size=8 innodb_data_home_dir="D:\MySql\mysql-5.7.5-m15-winx64/data/" innodb_flush_log_at_trx_commit = 1 innodb_log_buffer_size=128M innodb_buffer_pool_size=128M innodb_log_file_size=10M innodb_thread_concurrency=16 innodb-autoextend-increment=1000 join_buffer_size = 128M sort_buffer_size = 32M read_rnd_buffer_size = 32M max_allowed_packet = 32M explicit_defaults_for_timestamp=true sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES ####################End of configuration file################### 4. Add it to the Windows PATH environment variable, and pay attention to the replacement in yellow!!! D:\MySql\mysql-5.7.17-winx64\bin; (note the semicolon) 5. Open the administrator's cmd, enter the /bin directory where the files are stored, and pay attention to the replacement in yellow!!! mysqld install MySQL --defaults-file="D:\MySql\mysql-5.7.17-winx64\my.ini" 6. Enter in cmd net start mysql The MySQL service cannot be started and the service does not report any errors. 7. Solution mysqld --romve mysqld --install mysqld --initialize net start mysql 8. Now you can use mysql normally. The cmd command to start/stop mysql is as follows net start mysql net stop mysql Wonderful topic sharing: MySQL different versions installation tutorial MySQL 5.7 installation tutorials for various versions MySQL 5.6 installation tutorials for various versions mysql8.0 installation tutorials for various versions The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Example code for implementing concurrent request control in JavaScript/TypeScript
>>: Summary of basic usage of js array
This article example shares the specific code of ...
Table of contents 1. Memory model and runtime dat...
2.1 Semanticization makes your web pages better u...
Copy code The code is as follows: <thead> &...
Table of contents What is ReactHook? React curren...
In daily work, we often need to view logs. For ex...
Table of contents Preface text 1. Global Registra...
Table of contents MySQL Client/Server Protocol If...
Effect display The built-in boot interface is too...
This article summarizes the common commands for L...
Purpose: Allow the state data managed in vuex to ...
About Event: MySQL 5.1 began to introduce the con...
Table of contents What is a Binary Search Tree (B...
Preface At work, I need to count the materials su...
<br />We usually declare DOCTYPE in HTML in ...