MySQL 8.0.18 deployment and installation tutorial under Windows 7

MySQL 8.0.18 deployment and installation tutorial under Windows 7

1. Preliminary preparation (windows7+mysql-8.0.18-winx64)

1. Download address: https://dev.mysql.com/downloads/

2. Choose to download directly without logging in. The downloaded compressed package is about 200M, and after decompression it is about 1G

3. Compress the file, remember the location of the compressed file, and add the environment variable below. Mine is: C:\Program Files\mysql-8.0.18-winx64. Put the file in a place you are used to, and create a data folder and a my.ini file. The data file is empty. There are many combinations of my.ini on the Internet, depending on your needs.

my.ini:
[mysqld]
character-set-server=utf8
#Bind IPv4 and port 3306 bind-address = 0.0.0.0
port = 3306
sql_mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
default_storage_engine=innodb
innodb_buffer_pool_size=1000M
innodb_log_file_size=50M
# Set the mysql installation directory basedir=C:\Program Files\mysql-8.0.18-winx64
# Set the storage directory of mysql database data datadir=C:\Program Files\mysql-8.0.18-winx64\data
# Maximum number of connections allowed max_connections=20
# skip_grant_tables
[mysql]
default-character-set=utf8
[mysql.server]
default-character-set=utf8
[mysql_safe]
default-character-set=utf8 

4. Add environment variables, search for environment variables, or right-click My Computer Properties Advanced System Configuration

Click on Environment Variables

Click New

Put the path of mysql's bin directory and confirm it.

2. Install MYSQL

1. Initialize mysql and open the cmd command line

mysqld --initialize --user=mysql – There is a warning below the console, you can ignore the error, remember the temporary password, right-click to mark and then right-click to complete the copy and paste it elsewhere

2. Installation successful

3. Start the mysql service

Or start the mysql service in the service. The service name here is mysqld –install + plus the service name. I didn’t add it here, it should be the default service name

4. Log in to mysql and enter the password you recorded previously

5. Reset password set password = '123456';

6. Create a database to test it. After using Oracle for a long time, MySQL still feels very comfortable and concise.

In fact, this way of installing MySQL is also very quick and green, just download it from the official website

Summarize

The above is the illustrated tutorial on how to deploy and install MySQL 8.0.18 under Windows 7 that I introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to install and deploy MySQL 8.0 under CentOS8
  • Example of how to deploy MySQL 8.0 using Docker
  • Implementation of Docker deployment of MySQL cluster
  • Detailed explanation of the process of deploying MySql on Centos server and connecting to Navicat
  • Detailed tutorial on how to compile and install mysql8.0.29 in CentOS8 deployment LNMP environment
  • Detailed steps for remote deployment of MySQL database on Linux
  • Implementation of Docker deployment of Django+Mysql+Redis+Gunicorn+Nginx
  • Detailed explanation of deploying MySQL using Docker (data persistence)
  • Docker deploys mysql to achieve remote connection sample code
  • mysql-8.0.17-winx64 deployment method
  • A problem with MySQL 5.5 deployment

<<:  Method of implementing recursive components based on Vue technology

>>:  Solution to the conflict between Linux kernel and SVN versions

Recommend

JavaScript microtasks and macrotasks explained

Preface: js is a single-threaded language, so it ...

Detailed explanation of fetch network request encapsulation example

export default ({ url, method = 'GET', da...

Universal solution for MySQL failure to start under Windows system

MySQL startup error Before installing MySQL on Wi...

Detailed explanation of the basic usage of the Linux debugger GDB

Table of contents 1. Overview 2. gdb debugging 2....

React Native JSI implements sample code for RN and native communication

Table of contents What is JSI What is different a...

How to view the storage location of MySQL data files

We may have a question: After we install MySQL lo...

Configure nginx to redirect to the system maintenance page

Last weekend, a brother project was preparing to ...

Solution to nginx not jumping to the upstream address

Preface Today I encountered a very strange proble...

Detailed explanation of MySQL Group by optimization

Table of contents Standard execution process opti...

Application nesting of HTML ul unordered tables

Application nesting of unordered lists Copy code T...

What are the benefits of using // instead of http:// (adaptive https)

//Default protocol /The use of the default protoc...

Tutorial on using iostat command in Linux

Preface It is said that if the people doing opera...

CSS float (float, clear) popular explanation and experience sharing

I came into contact with CSS a long time ago, but...

Essential conditional query statements for MySQL database

Table of contents 1. Basic grammar 2. Filter by c...