Tips:
MySQL must download the correct version;
MySQL must download the correct version;
MySQL must download the correct version;
Ubuntu16 compile and install mysql5.7
mysql download address: MySQL5.7 download
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-boost-5.7.21.tar.gz
Finally, set it as a system boot service: chkconfig has been abandoned, it is recommended to use systemctl , the relevant commands are as follows:
cp /data/server/mysql/support-files/mysql.server /etc/init.d/mysqld systemctl daemon-reload [reload service file] systemctl start mysqld systemctl stop mysqld systemctl restart mysqld
Reference address:
Compile and install MySQL 5.7 from Linux source code
Ubuntu-16.04 source code compile and install mysql-5.7.17