在 Solaris 上安装 MySQL

WBOY
发布: 2023-08-27 22:17:02
转载
1084人浏览过

在 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 on 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 of having to install the full Oracle Developer Studio. This package can be used by downloading the corresponding mysql-VERSION-solaris11-PLATFORM.pkg.gz file.

Uncompress Solaris Package

This needs to be uncompressed after being downloaded. Below is a sample code to do 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).

电子手机配件网站源码1.0
电子手机配件网站源码1.0

电子手机配件网站源码是一个响应式的织梦网站模板,软件兼容主流浏览器,且可以在PC端和手机端中进行浏览。模板包含安装说明,并包含测试数据。本模板基于DEDECms 5.7 UTF-8设计,需要GBK版本的请自己转换。模板安装方法:1、下载最新的织梦dedecms5.7 UTF-8版本。2、解压下载的织梦安装包,得到docs和uploads两个文件夹,请将uploads里面的所有文件和文件夹上传到你的

电子手机配件网站源码1.0 0
查看详情 电子手机配件网站源码1.0

To complete the installation, the root password 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.

By 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 different zone of Solaris.

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 directories.

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中文网其它相关文章!

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:tutorialspoint网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门推荐
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号