728x90
반응형
음... 이 글을 쓰기전에 정말 뻘짓했다..ㅡ.ㅡ;;;
여기 저기서 글을 찾아서 설치를 해봤는데..계속 실패를 거듭하던중...
새로운 사실을 알았다...
바로..솔라리스10은 기본적으로 MySQL이 깔려있다는 것이다..
정말 유용한 사이트...[http://radiocom.kunsan.ac.kr/lecture/start.html]
다른 버젼을 설치 한다고 하면 위 사이트에서 참고를 하기 바란다...
환경 설정말 바꿔주면 되는...ㅡ.ㅡ;;
이거 뭐냐...제길....친절하게 설명서도 존재했다...
[root@Solaris10:/usr/local]# cat /etc/sfw/mysql/README.solaris.mysql
To use mysql a number of post-install procedures need to be made by root.
The following steps are derived from the mysql manual (manual.ps, manual.txt or
manual_toc.html) found in the /usr/sfw/src/mysql/Docs directory.
Initialise the database tables.
# /usr/sfw/bin/mysql_install_db
Create mysql user and group and change data directory group.
# groupadd mysql
# useradd -g mysql mysql
# chgrp -R mysql /var/mysql
# chmod -R 770
# installf SUNWmysqlr /var/mysql d 770 root mysql
MySQL reads configuration files from different places in the following order.
Filename Purpose
--------- ---------
/etc/my.cnf Global options
DATADIR/my.cnf Server-specific options
defaults-extra-file The file specified with
--defaults-extra-file=path
~/.my.cnf User-specific options
Optionally copy a mysql daemon configuration file to configuration directory.
Note there are other configuration profiles available.
For default solaris installation DATADIR is /var/mysql.
# cp /usr/sfw/share/mysql/my-medium.cnf /var/mysql/my.cnf
Start mysql daemon by hand
# /usr/sfw/sbin/mysqld_safe --user=mysql &
Optionally perform the following steps for automatic start and stop of
mysql daemon at boot and shutdown.
Link boot time start up script from rc3.d and rc[012S].d
# ln /etc/sfw/mysql/mysql.server /etc/rc3.d/S99mysql
# ln /etc/sfw/mysql/mysql.server /etc/rc0.d/K00mysql
# ln /etc/sfw/mysql/mysql.server /etc/rc1.d/K00mysql
# ln /etc/sfw/mysql/mysql.server /etc/rc2.d/K00mysql
# ln /etc/sfw/mysql/mysql.server /etc/rcS.d/K00mysql
위 작업을 하고 reboot 하고 mysql 치면...된다...제길...
완전 뻘진중에 뻘짓이다...
728x90
반응형