Installing MySQL on Solaris
100
CPU
Value
Intended Processor Type or Family
ia64
Itanium (IA-64) processor
To see all files in an RPM package (for example, a
MySQL-server
RPM), run a command like this:
shell>
rpm -qpl MySQL-server-VERSION.glibc23.i386.rpm
To perform a standard minimal installation, install the server and client RPMs:
shell>
rpm -i MySQL-server-VERSION.glibc23.i386.rpm
shell>
rpm -i MySQL-client-VERSION.glibc23.i386.rpm
To install only the client programs, install just the client RPM:
shell>
rpm -i MySQL-client-VERSION.glibc23.i386.rpm
RPM provides a feature to verify the integrity and authenticity of packages before installing them. If you
would like to learn more about this feature, see
Section 2.6, “Verifying Package Integrity Using MD5
Checksums or
GnuPG
”
.
The server RPM places data under the
/var/lib/mysql
directory. The RPM also creates a login
account for a user named
mysql
(if one does not exist) to use for running the MySQL server, and
creates the appropriate entries in
/etc/init.d/
to start the server automatically at boot time. (This
means that if you have performed a previous installation and have made changes to its startup script,
you may want to make a copy of the script so that you do not lose it when you install a newer RPM.)
See
Section 2.18.1.2, “Starting and Stopping MySQL Automatically”
, for more information on how
MySQL can be started automatically on system startup.
If the RPM files that you install include
MySQL-server
, the
mysqld
server should be up and running
after installation. You should be able to start using MySQL.
If something goes wrong, you can find more information in the binary installation section. See
Section 2.16, “Installing MySQL from Generic Binaries on Other Unix-Like Systems”
.
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”
.
During RPM installation, a user named
mysql
and a group named
mysql
are created on the system.
This is done using the
useradd
,
groupadd
, and
usermod
commands. Those commands require
appropriate administrative privileges, which is ensured for locally managed users and groups (as listed
in the
/etc/passwd
and
/etc/group
files) by the RPM installation process being run by
root
.
If you log in as the
mysql
user, you may find that MySQL displays “Invalid (old?) table or
database name” errors that mention
.mysqlgui
,
lost+found
,
.mysqlgui
,
.bash_history
,
.fonts.cache-1
,
.lesshst
,
.mysql_history
,
.profile
,
.viminfo
, and similar files created
by MySQL or operating system utilities. You can safely ignore these error messages or remove the files
or directories that cause them if you do not need them.
For nonlocal user management (LDAP, NIS, and so forth), the administrative tools may require
additional authentication (such as a password), and will fail if the installing user does not provide this
authentication. Even if they fail, the RPM installation will not abort but succeed, and this is intentional.
If they failed, some of the intended transfer of ownership may be missing, and it is recommended that
the system administrator then manually ensures some appropriate user andgroup exists and manually
transfers ownership following the actions in the RPM spec file.
2.13. Installing MySQL on Solaris
To obtain a binary MySQL distribution for Solaris in tarball or PKG format,
http://dev.mysql.com/
downloads/mysql/5.0.html
.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...