MySQL 8.0.13 decompression version installation graphic tutorial under Windows

MySQL 8.0.13 decompression version installation graphic tutorial under Windows

This article shares with you the MySQL 8.0.13 installation graphic tutorial for your reference. The specific content is as follows

1.1. Download:

I downloaded the zip package for the 64-bit system:

Download

Download the zip package

1.2. Configure environment variables:

Variable Name: MYSQL_HOME

Variable value: C:\Program Files\Java\mysql-8.0.13-winx64

Add to path: %MYSQL_HOME%\bin;

1.3. Generate data file:

Run cmd as administrator

Enter C:\Program Files\Java\mysql-8.0.13-winx64\bin

Execute the command: mysqld --initialize-insecure --user=mysql

Generate the data directory in the C:\Program Files\Java\mysql-8.0.13-winx64 directory

1.4. Start the service:

Execute the command: net start mysql to start the MySQL service. If it prompts: The service name is invalid... (there is a solution later == step: 1.5);

1.5. Solve the problem of failure to start the service ( error ) :

Tip: The service name is invalid

Solution:

Execute the command: mysqld -install (no my.ini configuration file is required. Note: Many things written on the Internet require a my.ini configuration file. In fact, it is also possible without a my.ini configuration file. I placed a my.ini file before, but it prompted that the service could not be started. After deleting my.ini, it started successfully)

If the following picture appears, you need to end all MySQL processes in the resource manager and restart them.

1.6. Log in to mysql:

Log in to mysql: (Because no password was set before, the password is blank, no need to enter a password, just press Enter)

C:\Program Files\Java\mysql-8.0.13-winx64\bin>mysql -u root -p

Enter password: ******

1.7. Query user password :

Query user password command: mysql> select host,user,authentication_string from mysql.user;

1.8. Set (or modify) the root user password:

Set (or modify) the root user password:

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
#'123456', the content in quotation marks here is the password, you can set it at will Query OK, 1 row affected, 1 warning (0.00 sec)

Rows matched: 1 Changed: 1 Warnings: 1

mysql> flush privileges; #Function: Equivalent to saving. The setting will take effect only after executing this command. If not executed, the previous password will remain unchanged. Query OK, 0 rows affected (0.01 sec)

1.9. Exit mysql:

mysql> quit
Bye

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 8.0.13 manual installation tutorial
  • MySQL 8.0.13 free installation version configuration tutorial under Windows environment
  • MYSQL8.0.13 free installation version configuration tutorial example detailed explanation
  • MySQL 8.0.13 download and installation tutorial with pictures and text
  • MySQL 8.0.13 installation and configuration method graphic tutorial under win10
  • MySQL 8.0.13 installation and configuration method graphic tutorial
  • MySQL 8.0.13 decompression version installation and configuration method graphic tutorial
  • MySQL 8.0.13 installation and configuration tutorial under CentOS7.3
  • MySQL 8.0.13 installation and configuration method graphic tutorial under Windows 64 bit
  • mysql8.0.0 winx64.zip decompression version installation and configuration tutorial
  • Ubuntu Server 16.04 MySQL 8.0 installation and configuration graphic tutorial

<<:  Vue implements div wheel zooming in and out

>>:  VMware Workstation download and installation detailed tutorial

Recommend

Detailed explanation of the difference between uniapp and vue

Table of contents 1. Simple page example 2.uni-ap...

Use Vue3 for data binding and display list data

Table of contents 1. Comparison with Vue2 1. New ...

Implementation of multi-port mapping of nginx reverse proxy

Code Explanation 1.1 http:www.baidu.test.com defa...

Comparing Node.js and Deno

Table of contents Preface What is Deno? Compariso...

Detailed steps to build a file server in Windows Server 2012

The file server is one of the most commonly used ...

React Hooks Usage Examples

Table of contents A simple component example More...

MySQL 8.0.11 installation summary tutorial diagram

Installation environment: CAT /etc/os-release Vie...

How to mount the CD to find the rpm package under Linux

Written in front Sometimes you need to install so...

A designer complains about Hammer's official website again

Last year, the open letter was a huge hit, even a...

What is a MySQL index? Ask if you don't understand

Table of contents Overview From Binary Tree to B+...

Detailed analysis of binlog_format mode and configuration in MySQL

There are three main ways of MySQL replication: S...

How to use nginx as a proxy cache

The purpose of using cache is to reduce the press...

Basic knowledge of HTML: a preliminary understanding of web pages

HTML is the abbreviation of Hypertext Markup Langu...

The marquee tag in HTML achieves seamless scrolling marquee effect

The <marquee> tag is a tag that appears in ...