Summary of installation steps and problems encountered in decompressing the mysql5.7.24 version

Summary of installation steps and problems encountered in decompressing the mysql5.7.24 version

1. Download

https://dev.mysql.com/downloads/mysql/

2. Unzip to a fixed location, such as D:\MySQL\mysql-5.7.24

3. Add the my.ini file

Same level as bin...
[mysql]

Set the default character set for the MySQL client

default-character-set=utf8
 [mysqld]

Set port 3306

port = 3306

Set the installation directory of MySQL

basedir=D:\MySQL\mysql-5.7.24

Set the storage directory for mysql database data

datadir=D:\MySQL\mysql-5.7.24\data

Maximum number of connections allowed

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 new tables

default-storage-engine=INNODB
max_connect_errors=100
 explicit_defaults_for_timestamp=true
 ···

4. Initialization

mysqld --install mysql --defaults-file=D:\MySQL\mysql-5.7.24\my.ini

5. Installation service

mysqld --install mysql

6. Startup

net start mysql

Finish

Problems encountered

1. Start and then stop the MySQL service on the local computer. Some services will automatically stop when they are not in use by other services or programs.

Or the console reports an error

mysql service cannot be started

The service did not report any errors

You can re-initialize and restart. Before initialization, you need to clear the data folder (same level as bin)

You can also delete the service and re-register

mysqld -remove mysql

2. Re-registering may reveal other errors such as: TIMESTAMP with implicit DEFAULT value is deprecated

Solution:

In the my.ini file, add a line under [mysqld] with explicit_defaults_for_timestamp=true. That's it

The meaning of this statement is #enable query cache, which is also one of the web caches. For repeated queries, you only need to read them in the cache, reducing the access to the database.

3. Log in and change the password according to the instructions on the Internet:

mysqladmin -uroot -p password 新密碼

Found that it would also report an error

mysql Access denied for user root@localhost error

Skip password login and change table user

 update user set password=password("new password") where user="root";
 The password column name may also be authentication_string

Then flush privileges;

4. How to skip password login

In the MySQL configuration file my.ini, add skip-grant-tables under [mysqld], shut down the MySQL service and restart it;

Enter the command: mysql -u root -p

After pressing Enter, you will be asked to enter your password. Press Enter to skip this and you will enter MySQL directly.

After this setting, you can directly double-click mysql.exe in D:\MySQL5.7.10\bin to start it without entering commands.

Summarize

The above is the installation steps of the mysql5.7.24 decompression version introduced by the editor and a summary of the problems encountered. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Detailed tutorial on compiling and installing MySQL 5.7.24 on CentOS7
  • Centos7.5 installs mysql5.7.24 binary package deployment
  • The perfect solution for MYSQL5.7.24 installation without data directory and my-default.ini and service failure to start
  • Detailed graphic description of the database installation process of MySQL version 5.7.24
  • MySQL 5.7.24 installation and configuration graphic tutorial
  • MySQL 5.7.24 installation and configuration method graphic tutorial
  • How to install mysql5.7.24 binary version on Centos 7 and how to solve it
  • MySQL 5.7.24 compressed package installation and configuration method graphic tutorial

<<:  Detailed explanation of the execution order of JavaScript Alert function

>>:  Detailed explanation of how to use Docker-Compose commands

Recommend

linux No space left on device 500 error caused by inode fullness

What is an inode? To understand inode, we must st...

Example of automatic import method of vue3.0 common components

1. Prerequisites We use the require.context metho...

Move MySQL database to another disk under Windows

Preface Today I installed MySQL and found that th...

Analysis of the process of building a LAN server based on http.server

I don’t know if you have ever encountered such a ...

How to monitor array changes in JavaScript

Preface When introducing defineProperty before, I...

MySQL 5.7.17 winx64 installation and configuration tutorial

Today I installed the MySQL database on my comput...

How to fix some content in a fixed position when scrolling HTML page

This article mainly introduces how some content i...

The difference between MySQL user management and PostgreSQL user management

1. MySQL User Management [Example 1.1] Log in to ...

MySQL 5.6.23 Installation and Configuration Environment Variables Tutorial

This article shares the installation and configur...

Solution to the problem of large font size on iPhone devices in wap pages

If you don't want to use javascript control, t...

One-click installation of MySQL 5.7 and password policy modification method

1. One-click installation of Mysql script [root@u...

How to change the mysql password on the Xampp server (with pictures)

Today, I found out while working on PHP that if w...

Basic operations on invisible columns in MySQL 8.0

Table of contents 01 Create invisible columns 02 ...

TypeScript uses vscode to monitor the code compilation process

Install Install ts command globally npm install -...