Solve the installation problem of mysql8.0.19 winx64 version

Solve the installation problem of mysql8.0.19 winx64 version

MySQL is an open source, small relational database management system developed by the Swedish company MySQL AB. Currently, MySQL is widely used in small and medium-sized websites on the Internet. Due to its small size, fast speed, low total cost of ownership, and especially its open source nature, many small and medium-sized websites choose MySQL as their website database in order to reduce their total cost of ownership.

This article focuses on solving the installation problem of mysql8.0.19 winx64 version. The specific content is as follows:

Download address: https://dev.mysql.com/downloads/mysql/, I downloaded the 187.8M one above.

By the way, Sina Weibo is really terrible recently. I can’t even log in to it.

I used to write at Sina.

I'll change this later. I suddenly found that I like this style.

==================================================
After downloading and unzipping, I found that there was no installation file at all. Then I searched on Baidu and found that I needed to create a my.ini and data directory first. I felt it was ridiculous that the installation required this.

After installation, when executing " mysql -u root -p ", the online tutorial just needs to enter the password, but an error message appears after entering:

“ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)”

Then I continued searching online and found a bunch of solutions. They all solved the problem, but mine couldn't be solved.

Insert a small error here:
PS C:\WINDOWS\system32>mysql --install mysql
mysql: [ERROR] unknown option '--install'.

The one with the letter d at the end is actually mysqld, not mysql. See below.

===================================================
Later I deleted data and my.ini.

Then follow the steps below step by step.

PS C:\WINDOWS\system32>mysqld --initialize --console
2020-03-07T11:07:18.159694Z 0 [System] [MY-013169] [Server] D:\Program Files\mysql-8.0.19-winx64\bin\mysqld.exe (mysqld 8.0.19) initializing of server in progress as process 5900
2020-03-07T11:07:22.120685Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: Qy_kuyaC)1qg
PS C:\WINDOWS\system32>mysqld --install
The service already exists!
The current server installed: "D:\Program Files\mysql-8.0.19-winx64\bin\mysqld.exe" mysql
PS C:\WINDOWS\system32> net start mysql

The mysql service is starting.

The mysql service has been started successfully.

PS C:\WINDOWS\system32>mysql -uroot -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.19
Copyright (c) 2000, 2020, 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> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'xxxxxx';
Query OK, 0 rows affected (0.01 sec)

The next step is the operation of the database.

Enter the mysql directory and find that the data folder is automatically generated.

Summarize

This is the end of this article about solving the installation problem of mysql8.0.19 winx64 version. For more relevant mysql8.0.19 winx64 database installation content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • MySQL 8.0.24 version installation and configuration method graphic tutorial
  • Some improvements in MySQL 8.0.24 Release Note
  • Implementation of MySQL's MVCC multi-version concurrency control
  • The best solution for resetting the root password of MySQL 8.0.23
  • About the configuration problem of MyBatis connecting to MySql8.0 version
  • How to solve the problem that Seata cannot use MySQL 8 version
  • Detailed explanation of DBeaver connecting to MySQL version 8 and above and solving possible problems
  • Bugs encountered when using mybatis-generator with mysql8.0.3 in IDEA
  • Solution to the garbled code problem in MySQL 5.x
  • Detailed tutorial on installing MySQL 8.0.20 database on CentOS 7
  • Solution to ONLY_FULL_GROUP_BY error in Mysql5.7 and above
  • Django 2.2 and PyMySQL version compatibility issues
  • Steps to install MySQL 5.7 in binary mode and optimize the system under Linux
  • Installation of various versions of MySQL 8.0.18 and problems encountered during installation (essence summary)
  • Super detailed teaching on how to upgrade the version of MySQL

<<:  Solutions to problems using addRoutes in Vue projects

>>:  Detailed explanation of JavaScript axios installation and packaging case

Recommend

The correct way to use Homebrew in Linux

Many people use Linux Homebrew. Here are three ti...

Display special symbols in HTML (with special character correspondence table)

Problem Reproduction When using HTML for editing,...

Tutorial on binary compilation and installation of MySql centos7 under Linux

// It took me a whole afternoon to install this, ...

Control the light switch with js

Use js to control the light switch for your refer...

How to change the password of mysql5.7.20 under linux CentOS 7.4

After MySQL was upgraded to version 5.7, its secu...

Why the explain command may modify MySQL data

If someone asked you whether running EXPLAIN on a...

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

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

Native js implements a minesweeper game with custom difficulty

This article example shares the specific code of ...

Vue+flask realizes video synthesis function (drag and drop upload)

Table of contents We have written about drag and ...

Summary of common functions and usage methods of WeChat applet development

Here, I have mainly sorted out some commonly used...

Windows Server 2016 Quick Start Guide to Deploy Remote Desktop Services

Now 2016 server supports multi-site https service...

How to create a my.ini file in the MySQL 5.7.19 installation directory

In the previous article, I introduced the detaile...