Download the official websiteFirst go to the official website to download MySQL The link jumps to the download address of mysql: https://dev.mysql.com/downloads/mysql/ After decompression, it is as shown below. Initial configurationSince there is no my.ini file in the downloaded and unzipped folder, I created a new one here. I have given the configuration, and you can just copy it and modify it according to your actual situation. [mysqld] # Set port 3306 port=3306 # Set the installation directory of MySQL basedir=D:\Program Files (x86)\mysql-8.0.21-winx64\MySQL # Set the storage directory of MySQL database data datadir=D:\Program Files (x86)\mysql-8.0.21-winx64\MySQL\Data # Maximum number of connections allowed max_connections=200 # The number of connection failures allowed. max_connect_errors=10 # The default character set used by the server is utf8mb4 character-set-server=utf8mb4 # The default storage engine that will be used when creating a new table default-storage-engine=INNODB #Default authentication is done with the "mysql_native_password" plugin #mysql_native_password default_authentication_plugin=mysql_native_password [mysql] # Set the default character set of the mysql client to default-character-set=utf8mb4 [client] # Set the default port used by the mysql client to connect to the server port = 3306 default-character-set=utf8mb4 About time zone settings
About the problem of discontinuous id after deleting data In order to output the id in sequence, we need to initialize the id and reset it Formal installationOkay, the preparations are complete, let's start the installation. Simply enter cmd in the address bar to enter the command line interface for installation. I. . Crying, I actually believed it, but the same thing happened after reinstalling. Okay, I'll go download it. Hiss, that’s too much! The author cried and installed a VM virtual machine, regained his confidence, and restarted the computer Configurationmysqld --initialize --console 🆗!!! This is a temporary password. Execute the following command: mysqld --install to install This is success Start MySQLThe installation is successful, ready to start MySql: net start mysql, this is to start the mysql service net stop mysql, this is to shut down the mysql service By the way, regarding how to visually operate MySQL, I personally use this one Do you still have the previous password saved? Hiss, maybe it has been too long, I can actually set a password directly. Of course, you can also connect to the database in the mysql\bin directory we just operated on: When you see mysql> appear, you know you have entered the MySQL command line and can now change your password! Press Enter and then **exit; **This will exit MySQL About the system error 2 reported during the installation process Even if we configure the system environment variables, there is still system error 2.
Then it succeeded. The service already exists! If we display this sentence after mysqld --install: The service already exists! This is the end of this article about the installation steps of MySQL 8.0.21 and solutions to problems. For more information about the installation steps of MySQL 8.0.21, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Analysis of the implementation process of Docker intranet penetration frp deployment
>>: The HTML 5 draft did not become a formal standard
Table of contents Vue this.$store.state.xx.xx Get...
In JavaScript's DOM event model, events are r...
Table of contents Audio transcoding tools princip...
Prerequisites To run containers on Windows Server...
Preface Docker can configure environment variable...
Win10 installs mysql5.7 decompressed version, for...
Vue stores storage with Boolean values I encounte...
Table of contents Create a Vite project Creating ...
Table of contents 1. Installation Environment 2. ...
HTML validate refers to HTML validation. It is the...
background In order to support Docker containeriz...
CentOS 8 changed the software package installatio...
This article example shares the specific code of ...
I. Introduction First, let me explain the version...
I have recently learned web development front-end...