Home  >  Article  >  Database  >  Install MySQL from source

Install MySQL from source

WBOY
WBOYforward
2023-08-27 15:37:021439browse

从源安装 MySQL

Let us understand how to install MySQL from source -

MySQL can be built from source. The advantage of this is that it allows users to customize build parameters, compiler optimizations, and installation locations. The link below gives a list of systems that can run MySQL -

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

Before proceeding with installing from source, make sure that Oracle has generated a precompiled binary distribution for the corresponding platform and that it is suitable for the user.

Building MySQL with non-standard options may result in reduced functionality, performance, or application security.

MySQL source code has internal documentation written using Doxygen. The generated Doxygen content can be found at https://dev.mysql.com/doc/index-other.html

MySQL can be installed from source in two ways -

Using standard MySQL Source distribution

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

The name format of the release file is "mysql-VERSION.mysql". tar.gz', 'mysql-VERSION.zip', or 'mysql-VERSION.rpm', where VERSION is a number like 8.0.25.

The file names of source distributions can differ from those of precompiled binary distributions using the fact that source distribution names are generic and do not have platform names. On the other hand, binary distribution names have a platform name that indicates the type of system the distribution is intended to be used on (for example, pc-linux-i686 or winx64).

Using the MySQL Development Tree

To install MySQL from a standard source distribution, you must follow these steps -

  • Verify that the system meets the tool requirements.

  • Get the distribution files.

  • Configure, build and install the distro with the help of the above instructions as follows.

  • Perform the post-installation process.

The above is the detailed content of Install MySQL from source. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete