Solution to the problem of installing MySQL compressed version zip

Solution to the problem of installing MySQL compressed version zip

There was a problem when installing the compressed version of MySQL today. The service could not be started and I struggled for two or three hours. Later, I couldn't figure it out, so I just deleted the registry entries.

If you have installed mysql before, delete mysql: E:\work\mysql-5.7.23-winx64\bin>sc delete mysql

To delete the registry, refer to this blogger: https://www.jb51.net/article/157590.htm

Because I used a compressed version of MySQL before, there may be some legacy.

Of course you need to download: mysql-5.7.23-winx64.zip

After decompression, you need to add the my.ini file. Note: the data file also needs to be added by yourself

My my.ini file says

[mysql]

# Set the default character set of the mysql client to default-character-set=utf8

[mysqld]
sql_mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

 

#Set port 3306 port = 3306

# Set the installation directory of mysql to basedir=E:\work\mysql-5.7.23-winx64

# Set the storage directory of mysql database data datadir=E:\work\mysql-5.7.23-winx64\data


# 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


#The maximum number of connections to be processed at the same time is recommended to be set to about 80% of the upper limit max_connections = 200

#Log buffer size. Since the log is refreshed once a second at most, it usually does not need to exceed 16M.
innodb_log_buffer_size = 8M

event_scheduler = ON

explicit_defaults_for_timestamp=true

You can find the specific explanation on Baidu.

Preparation is complete. . . .

First, add the mysql bin directory to the system environment variable path. Note that there is a ; sign at the end. For example, mine

Then enter the mysql bin directory as an administrator, for example: E:\work\mysql-5.7.23-winx64\bin>

Then install mysql:

After the installation is complete, type: mysqld --initialize-insecure --user=mysql, the password is empty

start up

Of course, if you want to set a password, you can do so

Note: The -proot in mysql -u root -proot must not have spaces. Then use Navicat, the MySQL client, to log in directly.

Solving problems = attitude (cherish, selflessness (can’t find me), empty boat) + attribution (not all problems need to be solved, not all problems need to be solved now, not all problems need to be solved by oneself) + solution method (pyramid principle (background, conclusion, elaboration of supporting opinions, binary tree for opinions (background, conclusion, opinions…)) + system cycle method)

You may also be interested in:
  • Can't connect to local MySQL through socket ''/tmp/mysql.sock'' solution
  • A complete list of commonly used MySQL functions (classified and summarized)
  • Use MySQL master-slave configuration to achieve read-write separation and reduce database pressure
  • mysql+spring+mybatis to realize code configuration of database read-write separation
  • How to completely delete the MySQL service (clean the registry)
  • How to operate MySQL in Golang
  • Example of MySQL database operation encapsulated by Yaf framework
  • Several ways to store images in MySQL database
  • How to store text and pictures in MySQL
  • mysql code to implement sequence function

<<:  Detailed steps for implementing timeout status monitoring in Apache FlinkCEP

>>:  Summary of two methods to implement vue printing function

Recommend

How to use shell to perform batch operations on multiple servers

Table of contents SSH protocol SSH Connection pro...

Detailed explanation of MySQL Group by optimization

Table of contents Standard execution process opti...

How to use resident nodes for layer management in CocosCreator

CocosCreator version: 2.3.4 Most games have layer...

The latest version of MySQL5.7.19 decompression version installation guide

MySQL version: MySQL Community Edition (GPL) ----...

How to implement MySQL master-slave replication based on Docker

Preface MySQL master-slave replication is the bas...

Detailed tutorial on installing MySQL 8.0.19 in zip version on win10

Table of contents 1. After downloading, unzip it ...

Linux CentOS 6.5 Uninstall, tar and install MySQL tutorial

Uninstall the system-provided MySQL 1. Check whet...

Embed codes for several older players

The players we see on the web pages are nothing m...

jQuery implements ad display and hide animation

We often see ads appear after a few seconds and t...

What is the function of !-- -- in HTML page style?

Mainly for low version browsers <!-- --> is ...

Detailed examples of Docker-compose networks

Today I experimented with the network settings un...

The correct way to migrate MySQL data to Oracle

There is a table student in the mysql database, i...

Docker+nextcloud to build a personal cloud storage system

1. Docker installation and startup yum install ep...

Using js to implement the two-way binding function of data in Vue2.0

Object.defineProperty Understanding grammar: Obje...