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 variable principles and application examples

In the MySQL documentation, MySQL variables can b...

Detailed explanation of basic syntax and data types of JavaScript

Table of contents Importing JavaScript 1. Interna...

Nginx installation error solution

1. Unzip nginx-1.8.1.tar.gz 2. Unzip fastdfs-ngin...

Serial and parallel operations in JavaScript

Table of contents 1. Introduction 2. es5 method 3...

How to view the docker run startup parameter command (recommended)

Use runlike to view the docker run startup parame...

How to set up URL link in Nginx server

For websites with an architecture like LNMP, they...

Install redis and MySQL on CentOS

1|0MySQL (MariaDB) 1|11. Description MariaDB data...

Centos7.3 automatically starts or executes specified commands when booting

In centos7, the permissions of the /etc/rc.d/rc.l...

How to implement Mysql switching data storage directory

How to implement Mysql switching data storage dir...

How to completely uninstall mysql under CentOS

This article records the complete uninstallation ...