MySQL 8.0.11 installation and configuration method graphic tutorial

MySQL 8.0.11 installation and configuration method graphic tutorial

The installation and configuration methods of MySQL 8.0 are for your reference. The specific contents are as follows

Download : Go to the website first

Found on this site

After downloading, unzip it to the path you need

MySQL Configuration

Then create a new folder in the unzipped folder.

my.ini file

[mysqld]
# Set port 3306 port=3306
#Set the installation directory of mysql to basedir=C:\\JavaEnvironment\mysql-8.0.11-winx64
# Set the storage directory of mysql database data datadir=C:\\JavaEnvironment\mysql-8.0.11-winx64\\data
# Maximum number of connections allowed 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 = 10000
# 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
wait_timeout=31536000
interactive_timeout=31536000

#sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
[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

Paste the above code in and pay attention to this

#Set the installation directory of mysql to basedir=C:\\JavaEnvironment\mysql-8.0.11-winx64
# Set the storage directory of mysql database data datadir=C:\\JavaEnvironment\mysql-8.0.11-winx64\\data

These two lines should be changed according to your mysql location

Environment variable configuration

Then configure the environment variables

Then configure in Path

MySQL service initialization

Next, start the installation and run it in CMD

mysqld --initialize --user=mysql --console

You can see

Be sure to remember this initial password. You will need to use this initial password to log in to MySQL and change the password. If you click on it, just delete the data file configured in datadir and then re-initialize it.

Then enter

mysqld --install

Register the service.
Then open the service (you need to run cmd with administrator privileges here)

net start mysql

Then the fun started

Change the default password

use

mysql -u root -p

Log in to mysql and enter the initial password. Next, change the password

ALTER USER "root"@"localhost" IDENTIFIED BY "123456";

At this point the password is initialized to 123456.

other

If an error occurs when connecting using the database connection tool, try adding

default_authentication_plugin=mysql_native_password

I don't know why, but it's the right thing to add.

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:
  • RHEL7.5 mysql 8.0.11 installation tutorial
  • Detailed installation steps for MySQL 8.0.11
  • MySQL 8.0.11 MacOS 10.13 installation and configuration method graphic tutorial
  • MySQL 8.0.11 winx64 installation and configuration method graphic tutorial
  • MySQL 8.0.12 installation and configuration method graphic tutorial
  • MySQL 8.0.12 installation and configuration graphic tutorial
  • MySQL 8.0.12 decompression version installation tutorial
  • mysql installer community 8.0.12.0 installation graphic tutorial
  • MySQL 8.0.12 installation configuration method and password change
  • MySQL 8.0.11 MSI version installation and configuration graphic tutorial

<<:  How to use the Clipboard API in JS

>>:  Add crontab scheduled tasks to debian docker container

Recommend

JavaScript article will show you how to play with web forms

1. Introduction Earlier we introduced the rapid d...

Causes and solutions to the garbled character set problem in MySQL database

Preface Sometimes when we view database data, we ...

Introduction to MySQL <> and <=> operators

<> Operator Function: Indicates not equal t...

The impact of limit on query performance in MySQL

I. Introduction First, let me explain the version...

Using JavaScript difference to implement a comparison tool

Preface At work, I need to count the materials su...

MySQL full-text search usage examples

Table of contents 1. Environmental Preparation 2....

MySQL 5.6 root password modification tutorial

1. After installing MySQL 5.6, it cannot be enabl...

Tips on making web pages for mobile phones

Considering that many people now use smartphones, ...

4 functions implemented by the transform attribute in CSS3

In CSS3, the transform function can be used to im...

Velocity.js implements page scrolling switching effect

Today I will introduce a small Javascript animati...

Summary of MySQL's commonly used concatenation statements

Preface: In MySQL, the CONCAT() function is used ...

Make your text dance with the marquee attribute in HTML

Syntax: <marquee> …</marquee> Using th...

MySQL 5.7.27 winx64 installation and configuration method graphic tutorial

This article shares the installation and configur...