I searched a lot online and found that many of them were not for Linux systems and were inconsistent with the current new versions. I did a small project myself and practiced it myself, and I would like to share it with everyone for reference. Download method: 1. MySQL official website: https://www.mysql.com/downloads/ a. Select the corresponding module: b. Select the corresponding version (I choose Windows here): c. Select the 32-bit or 64-bit version to download: d. Click Download, it will ask you to log in or register, you can skip this: MySQL installation and configuration 1. Unzip the downloaded .zip file and put it where you want to install it. The location is arbitrary. [mysql] # Set the default character set of the mysql client to default-character-set=utf8 [mysqld] #Set port 3306 port = 3306 # Set the installation directory of MySQL basedir=D:\mysql\mysql-5.7.17-winx64 -- your own path # Set the storage directory of MySQL database datadatadir=D:\mysql\mysql-5.7.17-winx64\data -- your own path # Allow the maximum number of connections max_connections=200 # The default character set used by the server is the 8-bit latin1 character set character-set-server=utf8 # The default storage engine that will be used when creating a new table default-storage-engine=INNODB Then save it in ANSI format. 2. Open the Windows environment variable settings, put the full path of the mysql bin directory in the Path variable of the environment variable, and then add an English semicolon (;) after the path to save it. For example, D:/mysql/mysql-5.7.17-winx64/bin; 3. Install MySQL service: mysqld –install Start: net start MySQL 4. After successfully entering the service, use mysql -u root -p Enter 5. Change password There are three ways to do this: mysql> use mysql; mysql> update user set password=password('123') where user='root' and host='localhost'; mysql> flush privileges; 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:
|
<<: Detailed explanation of the wonderful uses of SUID, SGID and SBIT in Linux
>>: 8 tips for Vue that you will learn after reading it
The test environment of this experiment: Windows ...
Mysql5.5 dual machine hot standby Implementation ...
This article example shares the specific code of ...
This article uses examples to describe the basic ...
I searched for many ways to change it online but ...
Table of contents 1. Current situation 2. Communi...
Table of contents 1. Introduction: 2. Docker: 1 C...
This article shares with you the installation and...
This tutorial uses CentOS 7 64-bit. Allocate 2GB ...
Abstract: This article mainly explains how to ins...
1. Current date select DATE_SUB(curdate(),INTERVA...
As the demand for front-end pages continues to in...
The complete steps of Centos7 bridge network conf...
background nginx-kafka-module is a plug-in for ng...
Recently, I need to implement a cascading selecti...