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