Follow the tutorial to install the mysql database on linux
Running the command mysqld --initialize prompts:
It is not easy to add environment variables to query data
The final solution is to install
mysql-community-server-5.7.33-1.el7.x86_64.rpm
This server file.
Address: https://dev.mysql.com/downloads/mysql/
Mark it.
Reference article source: