龙须面

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

If you start from a source RPM, use the following command to make
a binary RPM that you can install. If you do not have rpmbuild,
use rpm instead.
shell> rpmbuild --rebuild --clean MySQL-VERSION.src.rpm

The result is one or more binary RPM packages that you install as
indicated in Section 2.5.1, "Installing MySQL from RPM Packages on
Linux."

The sequence for installation from a compressed tar file or Zip
archive source distribution is similar to the process for
installing from a generic binary distribution (see Section 2.2,
"Installing MySQL from Generic Binaries on Unix/Linux"), except
that it is used on all platforms and includes steps to configure
and compile the distribution. For example, with a compressed tar
file source distribution on Unix, the basic installation command
sequence looks like this:
# Preconfiguration setup

shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf

shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

A more detailed version of the source-build specific instructions
is shown following.
Note

The procedure shown here does not set up any passwords for MySQL
accounts. After following the procedure, proceed to Section 2.10,
"Postinstallation Setup and Testing," for postinstallation setup
and testing.

 

posted on 2013-03-25 19:53  木子小黑  阅读(177)  评论(0编辑  收藏  举报