Using MySQL 5.7, the operating system is 64-bit Debian GNU/Linux 8.6 (jessie).
Because the apt warehouse has removed mysql-related packages, you need to go to the official website to download them, as well as related dependency packages.
When installing mysql-community-server, you will be prompted to enter the MySQL root password.
Some of the following steps require root permissions.
wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-server_5.7.19-1debian8_amd64.deb-bundle.tar wget http://ftp.br.debian.org/debian/pool/main/liba/libaio/libaio1_0.3.110-1_amd64.deb wget http://ftp.br.debian.org/debian/pool/main/m/mecab/libmecab2_0.996-1.1_amd64.deb wget http://ftp.br.debian.org/debian/pool/main/n/numactl/libnuma1_2.0.10-1_amd64.deb dpkg -i libaio1_0.3.110-1_amd64.deb dpkg -i libmecab2_0.996-1.1_amd64.deb dpkg -i libnuma1_2.0.10-1_amd64.deb mkdir mysql_5.7 tar -xv -C mysql_5.7 -f mysql-server_5.7.19-1debian8_amd64.deb-bundle.tar cd mysql_5.7 dpkg -i mysql-common_5.7.19-1debian8_amd64.deb dpkg -i mysql-community-client_5.7.19-1debian8_amd64.deb dpkg -i mysql-client_5.7.19-1debian8_amd64.deb dpkg -i mysql-community-server_5.7.19-1debian8_amd64.deb
The above is the detailed content of How to install MySQL on Debian using dpkg. For more information, please follow other related articles on the PHP Chinese website!