mysql 5.7.5 m15 winx64.zip installation tutorial

mysql 5.7.5 m15 winx64.zip installation tutorial

How to install and configure mysql-5.7.5-m15-winx64 under win7 64 bit

It's been a while since I last installed MySQL. These steps may be forgotten. Just record it briefly. (Refer to some blogs on the Internet.)

1.mysql-5.7.5-m15-winx64.zip download

Official website download address: http://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.5-m15-winx64.zip

2. Unzip to D:\MySqlDataBase

3. Create a new my.ini configuration file under D:\MySqlDataBase\mysql-5.7.5-m15-winx64

The content is as follows:

#####################Configuration file begins###################
 # For advice on how to change settings please see
 # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
 # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
 # *** default location during installation, and will be replaced if you
 # *** upgrade to a newer version of MySQL.

 [client]

 default-character-set=utf8

 

 [mysqld]
 port=3306
 basedir = "D:\MySqlDataBase\mysql-5.7.5-m15-winx64/"
 datadir = "D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/"
 tmpdir = "D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/"
 socket = "D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/mysql.sock"
 log-error="D:\MySqlDataBase\mysql-5.7.5-m15-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:\MySqlDataBase\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###################

The key point is the following configuration, where the directory name of datadir must be: D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/.

4. Add the following to the Windows system environment variable path :

D:\mysql\mysql-5.7.5-m15-winx64\bin; (note the semicolon)

5. Register MySQL as a Windows system service

The specific operation is to execute the following command in the command line (the command line needs to be run as an administrator):

You need to switch to the bin directory, otherwise the service directory will be specified as C:\Program Files\MySQL\MySQL Server 5.7\mysqld

Add service command: mysqld install MySQL --defaults-file="D:\mysql\mysql-5.7.5-m15-winx64\my.ini"

The command to remove the service is: mysqld remove

6. After step 5 is successful, open the system service management

You can see the mysql system service

The command to start mysql in the command line is: net start mysql

The command to shut down mysql is: net stop mysql

7. Change the root password to wenthink

Command line execution: mysql –uroot

mysql>show databases;

mysql>use mysql;
mysql> UPDATE user SET password=PASSWORD('wenthink') WHERE user='root';

  mysql> FLUSH PRIVILEGES;

mysql> QUIT

Remote login configuration

Allow the root user to log in remotely from anywhere and have any operation permissions for all libraries. The specific operations are as follows:

1) Log in to MySQL as root user on this machine:

Command line execution: mysql -u root -p

Enter the password (the password set in step 7): wenthink

2) Perform authorization operations:

mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

Reload the authorization table:

mysql> FLUSH PRIVILEGES;

Exit mysql: quit

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:
  • mysql 5.7.17 winx64.zip installation and configuration method graphic tutorial
  • mysql 5.7.11 winx64.zip installation and configuration method graphic tutorial
  • Mysql5.7.17 winx64.zip decompression version installation and configuration graphic tutorial

<<:  Telnet is moved to busybox-extras in Alpine image

>>:  Vue+element+oss realizes front-end fragment upload and breakpoint resume

Recommend

Detailed tutorial on how to install mysql8.0 using Linux yum command

1. Do a good job of cleaning before installation ...

A brief discussion on the principle of React two-way data binding

Table of contents What is two-way data binding Im...

Mysql implements null value first/last method example

Preface We already know that MySQL uses the SQL S...

Detailed explanation of basic interaction of javascript

Table of contents 1. How to obtain elements Get i...

Comprehensive understanding of Node event loop

Table of contents Node Event Loop Event loop diag...

jQuery implements ad display and hide animation

We often see ads appear after a few seconds and t...

Adobe Brackets simple use graphic tutorial

Adobe Brackets is an open source, simple and powe...

Vue3.0 implements the magnifying glass effect case study

The effect to be achieved is: fixed zoom in twice...

Simple example of adding and removing HTML nodes

<br />Simple example of adding and removing ...

When the interviewer asked the difference between char and varchar in mysql

Table of contents Difference between char and var...

Basic reference types of JavaScript advanced programming

Table of contents 1. Date 2. RegExp 3. Original p...

Solution to the conflict between Linux kernel and SVN versions

Phenomenon The system could compile the Linux sys...

VMware Workstation 15 Pro Installation Guide (for Beginners)

01. VMware Workstation Pro 15 Download Download: ...