Installing MySQL from Source

MySQLMySQLi Database

Let us understand how MySQL can be installed from the source −

MySQL can be built from source code. The advantage of this is that it allows the user to customize the build parameters, the compiler optimizations, and the installation location. The below link gives a list of systems on which MySQL can be run−

https://www.mysql.com/support/supportedplatforms/database.html.

Before proceeding with an installation from a source, ensure whether Oracle produced a precompiled binary distribution for the respective platform and if it works for the user or not.

Building MySQL with nonstandard options might lead to a reduction in the functionality,performance, or security of the application.

The MySQL source code has internal documentation written using Doxygen. The generated Doxygen content is available on https://dev.mysql.com/doc/index-other.html

There are two ways in which MySQL can be installed from the source −

Using a standard MySQL source distribution

Standard distributions are available as compressed tar files, Zip archives, or RPM packages.

Distribution files have names in the form ‘mysql-VERSION.tar.gz’, ‘mysql-VERSION.zip’, or ‘mysql-VERSION.rpm’, where VERSION refers to a number like 8.0.25.

File names for source distributions can be differentiated from those that have precompiled binary distributions using the fact that source distribution names are generic and have no platform name. On the other hand, binary distribution names have a platform name indicating the type of system for which the distribution has been intended to be used (for example, pc-linux-i686 or winx64).

Use a MySQL development tree

To install MySQL from a standard source distribution, the below steps have to be followed −

  • Verify that the system satisfies the tool requirements.

  • Obtain a distribution file.

  • Configure, build, and install the distribution with the help of instruction mentioned below.

  • Perform the post-installation procedures.

raja
Published on 08-Mar-2021 16:25:19
Advertisements