MySQL 8.0.12 Simple Installation Tutorial

MySQL 8.0.12 Simple Installation Tutorial

This article shares the installation tutorial of MySQL 8.0.12 for your reference. The specific contents are as follows

Download address: link

Now the community version at the bottom is the free version

After that, we will see two options for downloading, one is the zip compressed package format, and the other is the Install version. I personally recommend downloading the zip compressed package format, which is faster to download and install, and more convenient.

After downloading, unzip the file to the location where you want to place the mysql file

Step 1: Set environment variables

Add the bin directory where you unzipped the file to the path. For example: D:\Sql Server\mysql-8.0.12-winx64\bin

Step 2: Configure and initialize my.ini

Create and add my.ini in D:\Sql Server\mysql-8.0.12-winx64

[mysqld]
# Set port 3306 port=3306
# Set the installation directory of mysql basedir=D:\\Sql Server\\mysql-8.0.12-winx64 # Remember to use double slashes\\ here, a single slash will cause an error.
# Set the storage directory of mysql database data datadir=D:\\Sql Server\\mysql-8.0.12-winx64\\Data # Same as above # Allow the maximum number of connections max_connections=200
# The number of connection failures allowed. This is to prevent someone from trying to attack the database system from this host max_connect_errors = 10
# The default character set used by the server is UTF8
character-set-server=utf8
# The default storage engine that will be used when creating a new table default-storage-engine=INNODB
# By default, the "mysql_native_password" plug-in is used for authentication. default_authentication_plugin=mysql_native_password
[mysql]
# Set the default character set of the mysql client to default-character-set=utf8
[client]
# Set the default port used by the mysql client to connect to the server port = 3306
default-character-set=utf8

Step 3: Run the cmd command as an administrator and change the path to the bin directory of mysql

3.1 Initialize the database, run the command: mysqld --initialize --console

This sentence should be pasted into Notepad to prevent forgetting. The above is the default password.

A temporary password is generated for root@localhost: rI5rvf5x5G,E

3.2 Install the service. Allow the command: mysqld --install [service name] The service name can be left blank. The default is mysql.

At this point, mysql is installed

Run mysql
net start mysql

Stop mysql
net stop mysql

To change the password, run cmd and run the command in the bin directory: mysql -u root -p Enter the password recorded above and then change the password

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.12 installation and configuration method graphic tutorial (Windows version)
  • MySQL 8.0.12 installation configuration method and password change
  • CentOS7 uses yum to install mysql 8.0.12
  • MySQL Community Server 8.0.12 installation and configuration method graphic tutorial
  • MySQL 8.0.12 winx64 detailed installation tutorial
  • MySQL 8.0.12 decompression version installation tutorial
  • MySQL 8.0.12 decompression version installation tutorial personal test!
  • mysql installer community 8.0.12.0 installation graphic tutorial
  • MySQL 8.0.12 installation and configuration method graphic tutorial (windows10)
  • MySQL 8.0.12 Installation and Usage Tutorial
  • MySQL 8.0.12 installation and configuration graphic tutorial
  • MySQL 8.0.12 Quick Installation Tutorial
  • MySQL 8.0.12 installation and configuration method graphic tutorial
  • How to install and configure MySQL 8.0.12 decompressed version under Windows 10 with graphic tutorials
  • MySQL 8.0.12 winx64 decompression version installation graphic tutorial
  • mysql 8.0.12 winx64 download and installation tutorial

<<:  Vue+thinkphp5.1+axios to realize file upload

>>:  How to compile and install xdebug in Ubuntu environment

Recommend

Tutorial on installing MySQL 5.7.9 using RPM package under CentOS 7

Recorded MySQL 5.7.9 installation tutorial, share...

Suggestions on creating business HTML emails

Through permission-based email marketing, not onl...

Detailed explanation of using split command to split Linux files

A few simple Linux commands let you split and rea...

Commonly used JavaScript array methods

Table of contents 1. filter() 2. forEach() 3. som...

Datagrip2020 fails to download MySQL driver

If you cannot download it by clicking downloadlao...

How to view Docker container application logs

docker attach command docker attach [options] 容器w...

How to manage large file uploads and breakpoint resume based on js

Table of contents Preface Front-end structure Bac...

ftp remotely connect to Linux via SSH

First install ssh in Linux, taking centos as an e...

MySQL 8.0.17 installation and usage tutorial diagram

Written in front In the past and in the current p...

SQL Practice Exercise: Online Mall Database User Information Data Operation

Online shopping mall database-user information da...