"Original" Install MYSQL (SunOS) using PKG Package

Source: Internet
Author: User
Tags mysql version

This article takes mysql-5.1.72-solaris10-i386.pkg.gz as an example

which

mysql-5.1.  the : MySQL version solaris10    : SunOS version i386.        : SunOS machine CPU Model             : Number of digits, no default 32-bit

Installation Machine Condition:

Reference:

Http://dev.mysql.com/doc/refman/5.1/en/solaris-installation-pkg.html

1. Solaris Uninstall the once installed MySQL

Ransacked the once installed MySQL pkg

# Pkginfo | grep sql

Start Uninstall

#pkgrm SUNWMYSQLR#PKGRM sunwmysqlt#pkgrm Sunwmysqlu

2. Download the MySQL Depot package

: http://dev.mysql.com/downloads/

3. Unpack the GZ Package

root-shell> gunzip mysql-5.1. -solaris10-i386.pkg.gz

4. Create user groups and users

Root-shell> groupadd mysql root-shell> useradd-d/opt/mysql-g mysql-m MySQL

5. Installing the PKG package via pkgadd

root-shell> pkgadd-d mysql-5.1. -solaris10-i386.pkg

After entering the carriage return, perform the installation

The default is to install to

/opt/mysql/mysql

6. Start MySQL

Root-shell>/etc/init.d/mysql Start

7. Modify Path

The above calls to MySQL are all using absolute paths, modified. CSHRC add/usr/local/mysql/bin to the PATH variable

Setenv PATH $PATH:/opt/mysql/mysql/bin

8. mysql configuration.

Set Root user Rights.

Steps

Command

Description

1

Su Root

Go to Super User

2

Mysql

Login MySQL Server

3

GRANT all privileges on * * to ' root ' @ '% ' identified by ' root ' with GRANT OPTION;

Set permissions

Set up network access, meditation system needed.

Access to the super user.

Modify the "my.cnf" file. There are two types of configuration file paths: "/etc/my.cnf" or "/etc/local/my.cnf".

"Original" Install MYSQL (SunOS) using PKG Package

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.