Comparison of three methods of installation mysql Linux platform

MySQL installation package on the Linux platform has RPM packages, binary packages and source packages in three

(1) RPM package:

Pros: Easy to install, does not require excessive installation configuration, suitable for beginners to install and use
Cons: need to download the client and server side, of course, now all be bundled with the download, the installation path is the default installation path can not be changed, only one server can install a MySQL, you can not install multiple virtual hosts.
File installation path:
/ usr / bin (Client programs and scripts)
/ usr / sbin (mysqld server)
/ var / lib / MySQL (log files and database)
/ usr / report this content share / DOC / Packages Standard Package (documentation)
/ usr / the include / mysql (including a common header file)
/ usr / lib / mysql (library file)
/ usr / report this content share / mysql (error messages and character set files)
/ usr / report this content share / SQL-Bench (benchmark)

(2) binary packages:

Advantages: easy to install, can be installed in any path, good flexibility; a server can install multiple mysql
Cons: already compiled, performance is not as well compiled source code, the compiler can not be flexibly customized parameter
file layout:
bin :( client programs and the mysqld server)
the Data (log files and database)
docs (documents and ChangeLog)
the include (header file that contains the public)
lib (libraries)
script (mysql_install_db script used to install the system database)
report this content share / MySQL (error message file)
SQL -bench (benchmark)

(3) Source Package:

Advantages: can be customized compiled the most flexible; the best performance; a server can install multiple MySQL
drawback: the installation process is complex; compile a long time; not for beginners
document layout:
bin (Client programs and scripts)
the include / mysql (public header files)
info (info format document)
lib / mysql (libraries)
libexec (MySQL server)
report this content share / mysql (error message file)
SQL-Bench (benchmarks and crash-me test)
var (database and log file)
above are summarized in simple terms derived from MySQL

Guess you like

Origin blog.51cto.com/13486869/2447276