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

Comprehensive analysis of isolation levels in MySQL

When the database concurrently adds, deletes, and...

Super detailed MySQL usage specification sharing

Recently, there have been many database-related o...

Detailed explanation of MySQL user rights verification and management methods

This article uses examples to illustrate how to v...

Vue custom v-has instruction to implement button permission judgment

Application Scenario Taking the background manage...

Vue globally introduces scss (mixin)

Table of contents 1. mixin.scss 2. Single file us...

Detailed explanation of 10 common HTTP status codes

The HTTP status code is a 3-digit code used to in...

MySQL query method with multiple conditions

mysql query with multiple conditions Environment:...

Core skills that web front-end development engineers need to master

The content involved in Web front-end development...

Solution to BT Baota Panel php7.3 and php7.4 not supporting ZipArchive

The solution to the problem that the PHP7.3 versi...

Complete steps to build NFS file sharing storage service in CentOS 7

Preface NFS (Network File System) means network f...

Use of align-content in flex layout line break space

1. The effect diagram implemented in this article...

MySQL replication table details and example code

MySQL replication table detailed explanation If w...