Linux supports many different methods to install MySQL. Only one of the distributions from Oracle needs to be used out of the many installations available.
Steps
Type − Apt, set up method−Enable the MySQL Apt repository
Type − Yum, set up method−Enable the MySQL Yum repository
Type − Zypper, set up method−Enable the MySQL SLES repository
Type − RPM, set up method−Download a specific package
Type − DEB, set up method−Download a specific package
Type − Generic, set up method−Download a generic package
Type − Source, set up method−Compile from source
Type − Docker, set up method−Use Docker Hub for MySQL Community Edition; download Docker image for MySQL Enterprise Edition from My Oracle Support
Type − Oracle Unbreakable Linux Network, set up method− Use ULN channels
The package manager on the system can be used to automatically download and install MySQL and packages from the native software repositories of the Linux distribution being used by the user. These native packages have several versions behind the currently available release.
The user can’t install the development milestone releases in general, because they are not made available in the native repositories.
For a lot of Linux installations, it is required to set up MySQL to start automatically when the machine is started.
Many native package installations have the ability to perform this operation, but for the source, binary and RPM solutions, this facility has to be set up separately.
The required script is ‘mysql.server’, which can be found in the support-files directory under the MySQL installation directory or even in the MySQL source tree. It can be installed as /etc/init.d/mysql for the Mysql to start up automatically and shut down.