Installing MySQL from RPM Packages on Linux
97
Note
The accounts that are listed in the MySQL grant tables initially have no
passwords. After starting the server, you should set up passwords for them
using the instructions in
Section 2.18, “Postinstallation Setup and Testing”
.
You might want to add aliases to your shell's resource file to make it easier to access commonly used
programs such as
mysql
and
mysqladmin
from the command line. The syntax for
bash
is:
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
For
tcsh
, use:
alias mysql /usr/local/mysql/bin/mysql
alias mysqladmin /usr/local/mysql/bin/mysqladmin
Even better, add
/usr/local/mysql/bin
to your
PATH
environment variable. You can do this by
modifying the appropriate startup file for your shell. For more information, see
Section 4.2.1, “Invoking
MySQL Programs”
.
If you are upgrading an existing installation, note that installing a new MySQL PKG does not remove
the directory of an older installation. Unfortunately, the Mac OS X Installer does not yet offer the
functionality required to properly upgrade previously installed packages.
To use your existing databases with the new installation, you'll need to copy the contents of the old
data directory to the new data directory. Make sure that neither the old server nor the new one is
running when you do this. After you have copied over the MySQL database files from the previous
installation and have successfully started the new server, you should consider removing the old
installation files to save disk space. Additionally, you should also remove older versions of the Package
Receipt directories located in
/Library/Receipts/mysql-VERSION.pkg
.
2.12. Installing MySQL from RPM Packages on Linux
The recommended way to install MySQL on RPM-based Linux distributions is by using the RPM
packages. The RPMs that we provide to the community should work on all versions of Linux that
support RPM packages and use
glibc
2.3. We also provide RPMs with binaries that are statically
linked to a patched version of
glibc
2.2, but only for the x86 (32-bit) architecture. To obtain RPM
packages, see
Section 2.5, “How to Get MySQL”
.
For non-RPM Linux distributions, you can install MySQL using a
.tar.gz
package. See
Section 2.16,
“Installing MySQL from Generic Binaries on Other Unix-Like Systems”
.
We do provide some platform-specific RPMs; the difference between a platform-specific RPM and a
generic RPM is that a platform-specific RPM is built on the targeted platform and is linked dynamically
whereas a generic RPM is linked statically with LinuxThreads.
Note
RPM distributions of MySQL are also provided by other vendors. Be aware that
they may differ from those built by us in features, capabilities, and conventions
(including communication setup), and that the instructions in this manual do
not necessarily apply to installing them. The vendor's instructions should be
consulted instead. Because of these differences, RPM packages built by us
check whether such RPMs built by other vendors are installed. If so, the RPM
does not install and produces a message explaining this.
If you have problems with an RPM file (for example, if you receive the error
Sorry, the host
'xxxx' could not be looked up
), see
Section 2.20.1.2, “Linux Binary Distribution Notes”
.
In most cases, you need to install only the
MySQL-server
and
MySQL-client
packages to get a
functional MySQL installation. The other packages are not required for a standard installation.
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...