"Original" Install MYSQL (AIX)

Source: Internet
Author: User

This article takes mysql-5.1.66-aix5.3-powerpc-64bit.tar.gz as an example

Where: Mysql-5.1.66:mysql version

Aix5.3:aix version

Powerpc:aix Machine CPU Model

64bit: Number of digits

Installation Machine Condition:

1. Download the MySQL Package

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

2. Unpack the GZ Package

Root-shell> Gunzip mysql-5.1.66-aix5.3-powerpc-64bit.tar.gz
Root-shell> Tar xvf Mysql-5.1.66-aix5.3-powerpc-64bit.tar

3. Change the Directory

4. Migrating MySQL to the/usr/local directory

root-shell> MV Mysql-5.1/usr/local

5. Create a link method for easy use, you can create a shortcut

Root-shell> cd/usr/local
root-shell> ln-s mysql-5.1 MySQL

6. Create user groups and users

root-shell> Mkgroup MySQL
root-shell> useradd-g MySQL MySQL
Root-shell> cd/usr/local
Root-shell> chown-r mysql:mysql./mysql-5.1

7. Execute the mysql_install_db script

Root-shell> cd/usr/local/mysql/scripts
root-shell>./mysql_install_db--user=mysql--basedir=/usr/local/mysql--datadir=/usr/local/mysql/data

8. Change the password

root-shell>/usr/local/mysql/bin/mysqladmin-u root password ' root '

9. Start MySQL

Root-shell> Mysqld_safe--user=mysql &

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

One. 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 (AIX)

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.