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
Install the nvidia graphics card driver under Ubu...
Table of contents What is Vuex? Vuex usage cycle ...
Table of contents Opening scene Direct rendering ...
Table of contents Event Loop miscroTask (microtas...
Table of contents 1. Required attributes 1. name ...
This article introduces the command statements fo...
Table of contents Packaging, launching and optimi...
Based on SEO and security considerations, a 301 r...
Preface The simple understanding of MySQL permiss...
Introduction: When using MySQL to create a table,...
1. Command Introduction The userdel (user delete)...
MySQL (5.6 and below) parses json #json parsing f...
mysql set to case insensitive Windows Go to the d...
1. Right-click the project and select properties ...
Environmental preparation: Deploy lnmp on a host ...