在 Solaris 上安裝 MySQL

WBOY
發布: 2023-08-27 22:17:02
轉載
987 人瀏覽過

在 Solaris 上安装 MySQL

MySQL can be installed on Solaris using a binary package which is the native Solaris PKG format, instead of using the binary tarball distribution. The installation package has a dependency the Oracle Developer Studio 12.6 Runtime Libraries. This needs to be installed before running the MySQL installation package.

The installation package ensures that the runtime libraries only are installed, instead having to install Studio. be used by downloading the corresponding mysql-VERSION-solaris11-PLATFORM.pkg.gz file.

Uncompress Solaris Package

This needs to be uncompressed after being downloaded。 the same −

shell> gunzip mysql-8.0.25-solaris11-x86_64.pkg.gz
登入後複製

安裝新軟體包

如果需要安裝新軟體包,則需要使用「pkgadd」選項,並按照螢幕上的提示進行操作。

此外,使用者必須具有root權限才能執行此操作。

shell> pkgadd -d mysql-8.0.25-solaris11-x86_64.pkg
The following packages are available:
1 mysql MySQL Community Server (GPL)
(i86pc) 8.0.25
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
登入後複製

The PKG installer installs all the files and tools that are needed, and initializes the database as well (if it doesn't exist).

To complete the installation, the root pass for for MySQL has to be set based on the instructions provided at the end of the installation. Otherwise, there is another way to do this- The 'mysql_secure_installation' script has to be run, which comes with the installation#installation. default, the PKG package installs MySQL under the root path, i.e /opt/mysql. The installation root path can be changed only if 'pkgadd' is used. This can be used to install MySQL in a Solariffer#onep ofSQL in a Solariffent.

Safe startup and shutdown

If MySQL needs to be automatically enabled during startup and closed when the system is shut down, a link needs to be created between this file and the 'init' script#irectories.

##To ensure safe startup and shutdown of MySQL, the below commands can be added to the correct links.

shell> ln /etc/init.d/mysql /etc/rc3.d/S91mysql
shell> ln /etc/init.d/mysql /etc/rc0.d/K02mysql
登入後複製

如果需要升級Solaris軟體套件檔案格式,則在安裝更新的軟體包之前需要刪除現有的軟體包安裝。當刪除軟體包時,它不會刪除資料庫上的現有資訊。它只會刪除伺服器、二進位檔案和支援檔案。

以上是在 Solaris 上安裝 MySQL的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:tutorialspoint.com
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!