Detailed installation and uninstallation tutorial for MySQL 8.0.12

Detailed installation and uninstallation tutorial for MySQL 8.0.12

1. Installation steps for MySQL 8.0.12 version.

1. Download

https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.12-winx64.zip

2. Unzip

Unzip mysql-8.0.12-winx64.zip to the D:/mysql directory

3Open the cmd command console and enter the following command.

d:

cd\

cd mysql

cd bin

d:\mysql\bin>mysqld --initialize-insecure Initialize the database directory, the account is root, and there is no password. After execution, there will be an additional data folder in the mysql directory.

4. Install the database system service and enter the following command.

d:\mysql\bin\mysqld --install xxx xxx is the service name. If it is not written, the default service name is mysql.

net start mysql starts the database service

5. Log in to the database server

d:\mysql\bin>mysql -uroot Direct login without password

mysql>select version(); View the current version number

mysql>show user(); View login account

mysql>show databases; View all databases

mysql>create database db; Create a database

6. Exit uninstall

mysql>exit Exit the client

d:\nysql\bin>net stop mysql to stop the service

d:\mysql\bin>mysqld --remove Uninstall service

The above is a detailed installation and uninstallation tutorial of MySQL 8.0.12 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:
  • How to install and uninstall MySQL 5.7.11 on Mac
  • How to install and uninstall MySQL service under Windows (MySQL 5.6 zip decompression version installation tutorial)
  • MySQL uninstall and install graphic tutorial under Linux
  • Installation and uninstallation of MySQL 5.7 decompressed version and summary of common problems
  • Detailed explanation of installing and completely uninstalling mysql with apt-get under Ubuntu
  • Ubuntu 16.04.1 MySQL installation and uninstallation graphic tutorial
  • Detailed tutorial on MySql installation and uninstallation
  • If MYSQL is not completely uninstalled, its installation will fail.
  • Complete step-by-step record of MySQL 8.0.26 installation and uninstallation

<<:  How to install pyenv under Linux

>>:  How to convert JavaScript array into tree structure

Recommend

Mysql aggregate function nested use operation

Purpose: Nested use of MySQL aggregate functions ...

HTML+CSS+JS to implement the Don't Step on the Whiteboard game

Table of contents Background 1. Thought Analysis ...

Solve the problem of spring boot + jar packaging deployment tomcat 404 error

1. Spring boot does not support jsp jar package, ...

Practical TypeScript tips you may not know

Table of contents Preface Function Overloading Ma...

HTML structured implementation method

DIV+css structure Are you learning CSS layout? Sti...

CSS scroll-snap scroll event stop and element position detection implementation

1. Scroll Snap is a must-have skill for front-end...

Implementing user registration function with js

This article example shares the specific code of ...

MySQL UNION operator basic knowledge points

MySQL UNION Operator This tutorial introduces the...

How to install and deploy gitlab server on centos7

I am using centos 7 64bit system here. I have tri...

Detailed tutorial on using Docker to build Gitlab based on CentOS8 system

Table of contents 1. Install Docker 2. Install Gi...

Detailed explanation of the execution process of MySQL query statements

Table of contents 1. Communication method between...

How to configure jdk environment under Linux

1. Go to the official website to download the jdk...

How webpack implements static resource caching

Table of contents introduction Distinguish betwee...

Some tips on deep optimization to improve website access speed

<br />The website access speed can directly ...