"Original" Installs MYSQL (HP-UX) with DEPOT package

Source: Internet
Author: User
Tags mysql version

This article takes mysql-5.1.56-hpux11.31-ia64-64bit.depot.gz as an example

Where: Mysql-5.1.56:mysql version

HPUX11.31:HP version

IA64:HP Machine CPU Model

64bit: Number of digits

Installation Machine Condition:

Reference:

Http://dev.mysql.com/doc/refman/5.1/en/hpux-installation-depot.html

1. Download the MySQL Depot package

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

2. Unpack the GZ Package

Root-shell> Gunzip mysql-5.1.56-hpux11.31-ia64-64bit.depot.gz

3. Installing the depot package via Swinstall

mysql-5.1.49-hpux11.31-ia64-64bit.depot

(Must be followed by the full path!!!!) )

4. To create a link, the default is to install to/usr/local/mysql-5.1.56-hpux11.31-ia64-64bit

For ease of use, you can create shortcuts

root-shell> ln-s mysql-5.1.56-hpux11.31-ia64-64bit MySQL

5. Create user groups and users

root-shell>/usr/sbin/groupadd MySQL
root-shell>/usr/sbin/useradd-g mysql-d/var/lib/mysql/-s/bin/false MySQL

6. Execute the mysql_install_db script

Root-shell> Cd/usr/local/mysql
Root-shell> scripts/mysql_install_db--user=mysql
Root-shell> chown-r Root.
root-shell> chown-r MySQL Data

7. Change the password

Root-shell> mysql_secure_installation

8. Start MySQL

Root-shell> Mysqld_safe--user=mysql &

9. 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:/usr/local/mysql/bin

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" Installs MYSQL (HP-UX) with DEPOT package

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.