2017 latest version of windows installation mysql tutorial

2017 latest version of windows installation mysql tutorial

1. First, download the latest version of MySQL from the official website of MySQL. Click the link to open it. Select the corresponding package to download according to your system model. It is about 300 megabytes and the version number is 5.7.19.

After downloading, decompress it, it is a standard mysql file, as shown in the figure

2. The second step is to configure the system environment variables, desktop → My Computer → right click "Properties" → Advanced System Settings → Environment Variables → System Variables → New

You can name the variable whatever you like. I'm calling it MYSQL_HOME. The variable value is the directory where the mysql folder you just downloaded is located. We point to the bin directory in it, and then confirm the return all the way.

3. There is no default configuration file in our mysql file. We create a new .ini configuration file named my-default.ini with the following content:

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/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.
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
# basedir = D:\mysql-server
# datadir = D:\mysql-server\data
# port = .....
# server_id = .....
#Set the server character set to utf8
character_set_server=utf8
collation-server=utf8_general_ci
#Set the installation directory of mysql basedir = D:\mysql-server
#Set the mysql data file storage directory datadir = D:\mysql-server\data
#Set the port bound to the mysql service port = 3306
#Set the maximum number of connections allowed by MySQL max_connections=15
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 
[client]  
#Set the client character set default-character-set=utf8
[WinMySQLadmin]
Server = D:\mysql-server\bin\mysqld.exe
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

Pay attention to the paths in there. Be sure to change them to the path where your mysql folder is located. Since the directory I put it in is D:\mysql-server, the above configuration path is this

4. Prepare to install mysql and install it through the command line tool

First, start cmd as an administrator!!! Note!!!, you must start it as an administrator, otherwise it will report an error later, prompting that you do not have enough permissions

The command is as follows: mysqld -install If the following prompt appears, it means the installation is successful

Then start the service, command: net start mysql

At this time, an error message is reported, indicating that it cannot be started, 3534. We use the mysqld --console command to view the error log

Here it is prompted that there is no \data file or path in the mysql folder. At this time, we create a new one

We use the command to enter the path of the mysql folder and enter the following command:

  mysqld --initialize-insecure --user=mysql

After executing the above command, MySQL will create a data folder and a default database. The login username is root and the password is empty.

At this time, we restart mysql and find that it can start normally.

At this point, we have successfully installed MySQL

Summarize

The above is the 2017 latest version of Windows MySQL installation tutorial introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Detailed installation process of MySQL 8.0 Windows zip package version
  • MySQL 8.0.11 Installation Tutorial under Windows
  • MySQL 8.0.11 Community Green Edition Installation Steps Diagram for Windows
  • MySQL5.7.17 winx64 installation version configuration method graphic tutorial under Windows server 2008 r2
  • Windows system mysql5.7.18 installation graphic tutorial
  • Detailed tutorial for installing mysql5.7.21 under Windows system
  • How to install the mysqldb module in python under windows
  • Windows Server 2016 MySQL database installation and configuration detailed installation tutorial
  • Windows Server 2008 64-bit MySQL5.6 installation-free version configuration method diagram
  • MySQL installation tutorial under Windows with pictures and text

<<:  JavaScript implements checkbox selection function

>>:  A Deep Understanding of Angle Brackets in Bash (For Beginners)

Recommend

Detailed explanation of CSS style sheets and format layout

Style Sheets CSS (Cascading Style Sheets) is used...

Tutorial on how to quickly deploy a Nebula Graph cluster using Docker swarm

1. Introduction This article describes how to use...

20 Signposts on the Road to Becoming an Excellent UI (User Interface) Designer

Introduction: Interface designer Joshua Porter pub...

Detailed explanation of nginx's default_server definition and matching rules

The default_server directive of nginx can define ...

Vue development tree structure components (component recursion)

This article example shares the specific code of ...

Linux installation MongoDB startup and common problem solving

MongoDB installation process and problem records ...

The difference between where and on in MySQL and when to use them

When I was writing join table queries before, I a...

Data URI and MHTML complete solution for all browsers

Data URI Data URI is a scheme defined by RFC 2397...

How to use Linux whatis command

01. Command Overview The whatis command searches ...

HTML5+CSS3 coding standards

The Golden Rule No matter how many people are wor...

What is ssh? How to use? What are the misunderstandings?

Table of contents Preface What is ssh What is ssh...

MySql grouping and randomly getting one piece of data from each group

Idea: Just sort randomly first and then group. 1....

How to create scheduled tasks using crond tool in Linux

Preface Crond is a scheduled execution tool under...

Implementation of WeChat applet message push in Nodejs

Select or create a subscription message template ...