Installation tutorial of MySQL 5.7.17 zip package version under win10

Installation tutorial of MySQL 5.7.17 zip package version under win10

The installation tutorial of mysql5.7.17 is shared with you for your reference. The specific contents are as follows

Download the zip file from the official website https://www.mysql.com/downloads/

Unzip

D:\devtool\mysql-5.7.17-winx64\

Add D:\devtool\mysql-5.7.17-winx64\bin to the environment variable

Right-click the Windows icon on the taskbar -> Command Prompt (Administrator), run cmd as an administrator, and cd to D:\devtool\mysql-5.7.17-winx64\bin. If you do not run it as an administrator, insufficient permissions will be denied.

Run the following three commands in sequence

mysqld --initialize-insecure

The data directory will be automatically created under D:\devtool\mysql-5.7.17-winx64\, so you don’t have to create the data directory manually.

mysqld -install

This step is to install the MySQL service. If you are not an administrator, you will be prompted with "Install/Remove of the Service Denied!" If you do not cd to the MySQL bin directory, the default path after the service is installed is C:\Program Files\MySQL\, and starting the service will fail with a prompt of "

System error 2 occurred. The system cannot find the file specified"

net start mysql

This step is to start the mysql service. If the first step is not completed, this step will fail and prompt "Please type NET HELPMSG 3534 for more help"

After starting mysql, you can enter mysql -u root -p enter in cmd to complete the first login

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.7.17

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

References:

Starting from MySQL 5.7.6, the solution to the prompt "Please type NET HELPMSG 3534 for more help" when installing MySQL

MySQL 5.6 for Windows decompressed version configuration and installation

Additional information:

After starting MySQL, you can enter mysql -u root -p enter in cmd for the first login. According to some previous articles, the initial password is empty, but after directly pressing enter, "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)" appears. After searching, the real reason for MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) - Xiaoxiang Hermit - Blog Garden This article is on Linux, but it mentions that a random password was generated. It directly tells me what I might find in the automatically generated data directory, open the "computer name.err" file (the computer name varies according to the actual situation, not these words itself) and search for password. Sure enough, I found it, and tried that password successfully.

You can choose to initialize with --initialize-insecure or --initialize. --initialize-insecure initializes the root password to empty. If you use --initialize to initialize, a random password will be generated.

——Excerpt from mysql 5.7.11 zip installation - happymzw

The official documentation says: https://dev.mysql.com/doc/refman/5.7/en/windows-initialize-data-directory.html

https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html

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:
  • About MySQL 8.0.13 zip package installation method
  • MySQL 5.7 zip archive version installation tutorial
  • Detailed installation process of MySQL 8.0 Windows zip package version
  • mysql8.0.0 winx64.zip decompression version installation and configuration tutorial
  • Detailed installation tutorial of mysql-8.0.11-winx64.zip
  • mysql5.7.21.zip installation tutorial
  • Summary of Problems in Installation and Usage of MySQL 5.7.19 Winx64 ZIP Archive
  • Detailed tutorial on installing mysql-8.0.13 (zip installation) on windows 10 system

<<:  Implementation of breakpoint resume in vue-video-player

>>:  Install CentOS 7 on VMware14 Graphic Tutorial

Recommend

Detailed process of getting started with docker compose helloworld

Prerequisites Compose is a tool for orchestrating...

Detailed examples of the difference between methods watch and computed in Vue.js

Table of contents Preface introduce 1. Mechanism ...

Tutorial on installing and uninstalling python3 under Centos7

1. Install Python 3 1. Install dependency package...

How to implement property hijacking with JavaScript defineProperty

Table of contents Preface Descriptors Detailed ex...

Three properties of javascript objects

Table of contents 1. writable: writable 2. enumer...

Docker renames the image name and TAG operation

When using docker images, images with both REPOSI...

TypeScript Enumeration Type

Table of contents 1. Overview 2. Digital Enumerat...

mysql5.6.8 source code installation process

Kernel: [root@opop ~]# cat /etc/centos-release Ce...

Detailed installation tutorial of Docker under CentOS

Docker is divided into CE and EE. The CE version ...

Detailed explanation of CSS float property

1. What is floating? Floating, as the name sugges...

Method to detect whether ip and port are connectable

Windows cmd telnet format: telnet ip port case: t...

Use of filter() array filter in JS

Table of contents 1. Introduction 2. Introduction...

Ubuntu 18.04 obtains root permissions and logs in as root user

Written in advance: In the following steps, you n...