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