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

Windows 10 is too difficult to use. How to customize your Ubuntu?

Author | Editor Awen | Produced by Tu Min | CSDN ...

MySQL partition table is classified by month

Table of contents Create a table View the databas...

Quick solution for forgetting MySQL8 password

Preface When we forget the MySQL database passwor...

Practical method of deleting files from Linux command line

rm Command The rm command is a command that most ...

HTML table tag tutorial (46): table footer tag

The <tfoot> tag is used to define the style...

MySQL 5.7.18 Green Edition Download and Installation Tutorial

This article records the detailed process of down...

Docker+gitlab+jenkins builds automated deployment from scratch

Table of contents Preface: 1. Install Docker 2. I...

Web front-end development CSS related team collaboration

The front-end development department is growing, ...

A detailed introduction to the use of block comments in HTML

Common comments in HTML: <!--XXXXXXXX-->, wh...

In-depth explanation of special permissions SUID, SGID and SBIT in Linux

Preface For the permissions of files or directori...

Semantics: Is Html/Xhtml really standards-compliant?

<br />Original text: http://jorux.com/archiv...

MySQL data type details

Table of contents 1. Numeric Type 1.1 Classificat...

MySQL scheduled full database backup

Table of contents 1. MySQL data backup 1.1, mysql...

CSS border adds four corners implementation code

1.html <div class="loginbody"> &l...

WeChat applet realizes multi-line text scrolling effect

This article example shares the specific code for...