2. 建立 mysql user 和 group ,并且更改数据目录的群组。
# groupadd mysql
# useradd -g mysql mysql
# chgrp -R mysql /var/mysql
# chmod -R 770 /var/mysql
# installf SUNWmysqlr /var/mysql d 770 root mysql
3. 预设 MySQL 设定文件位置为 /var/mysql/my.cnf
4. 复制 MySQL 设定文件到预设位置
# cp /usr/sfw/share/mysql/my-medium.cnf /var/mysql/my.cnf
5. 手动启动 mysql
# /usr/sfw/sbin/mysqld_safe --user=mysql &
7. 测试 MySQL Server
# ./mysqlshow -p
Enter password: new-password
+-----------+
| Databases |
+-----------+
| mysql |
| test |
+-----------+
# ./mysql -u root -p
Enter password: new-password
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.20-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+-----------+
| Databases |
+-----------+
| mysql |
| test |
+-----------+
2 rows in set (0.00 sec)
You may use and copy this software without charge, as you see fit.
The software is copyright (C) Philip Brown, Nov 2002
Dont forget to update /opt/csw/etc/pkg-get.conf with your nearest archive site.
The selected base directory must exist before installation
is attempted.
Do you want this directory created now [y,n,?,q] y
Using as the package base directory.
## Processing package information.
## Processing system information.
2 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of [y,n,?] y
Installing pkg_get - CSW version of automated package download tool as
## Installing part 1 of 1.
/opt/csw/bin/pkg-get
/opt/csw/etc/pkg-get.conf.csw
/opt/csw/share/man/man1m/pkg-get.1m
/var/pkg-get/admin-fullauto
[ verifying class ]
## Executing postinstall script.
Installing /opt/csw/etc/pkg-get.conf.csw to pkg-get.conf
Installation of was successful.
root:/usr/local/src# cd /
root:/#
4. 检查是否安装好 pkg-get 和 wget的位置
root:/# which pkg-get
/opt/csw/bin/pkg-get
root:/# which wget
/usr/sfw/bin/wget
7. 检查wget新的位置是否正确
root:/# which wget
/opt/csw/bin/wget
8. 检查 GNU Autoconf 的版本是否为 2.59 或以上
root:/# which autoconf && autoconf --version | head -2
/opt/csw/bin/autoconf
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.
如果不是为 2.59 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i autoconf
9. 检查 GNU automake 的版本是否为 1.8.3 或以上
root:/# which automake && automake --version | head -2
/opt/csw/bin/automake
automake (GNU automake) 1.8.3
Written by Tom Tromey .
如果不是为1.8.3 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i automake
10. 检查 GNU sed version 的版本是否为 4.1.4 或以上
root:/# which gsed && gsed --version | head -2
/opt/csw/bin/gsed
GNU sed version 4.1.4
Copyright (C) 2003 Free Software Foundation, Inc.
如果不是为 4.1.4 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i gsed
12. 检查 GNU Make 的版本是否为 3.80 或以上
root:/# which gmake && gmake --version | head -2
/usr/sfw/bin/gmake
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
如果不是为 3.80 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i gmake
13. 检查 flex version 的版本是否为 2.5.4 或以上
root:/# which flex && flex --version | head -2
/usr/sfw/bin/flex
flex version 2.5.4
如果不是为 2.5.4 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i flex
14. 检查 GNU Bison 的版本是否为 1.875 或以上
root:/# which bison && bison --version | head -2
/usr/sfw/bin/bison
bison (GNU Bison) 1.875
Written by Robert Corbett and Richard Stallman.
如果不是为 1.875 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i bison
15. 检查 GNU M4 的版本是否为 1.4.3 或以上
root:/# which gm4 && gm4 --version | head -2
/opt/csw/bin/gm4
GNU M4 1.4.3
Written by Rene' Seindal.
如果不是为 1.4.3 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i gm4
16. 检查 Perl 的版本是否为 5.8 或以上
root:/# which perl && perl -v | head -2
/usr/bin/perl
This is perl, v5.8.4 built for i86pc-solaris-64int
如果不是为 5.8 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i perl
17. 检查 GNU zip 的版本是否为 1.3.3 或以上
root:/# which gunzip && gunzip -V | head -2
/usr/bin/gunzip
gunzip 1.3.3-patch.1
(2002-03-08)
如果不是为 1.3.3 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i gunzip
18. 检查 GNU tar 的版本是否为 1.14 或以上
root:/# which gtar && gtar --version | head -2
/usr/sfw/bin/gtar
tar (GNU tar) 1.14
Copyright (C) 2004 Free Software Foundation, Inc.
如果不是为 1.14 或以上版本或根本没有这个程序,执行以下指令:
root:/# pkg-get -i gtar