출처 :
The Perfect Setup - OpenSuSE 10.2 (32-bit) 에서 발췌 & 번역.
MySQLMySQL을 설치하기 위해, 다음 명령을 실행한다.
# yast2 -i mysql mysql-client mysql-shared perl-DBD-mysql perl-DBI perl-Data-ShowTable mysql-devel
그리고 나서 MySQL을 위한 System Startup Link를 추가해주고 이것을 시작시킨다:
# chkconfig --add mysql
# /etc/init.d/mysql start
more..
Creating MySQL privilege database...
Installing all prepared tables
Fill help tables
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h jvm.homeip.net password 'new-password'
See the manual for more instructions.
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Updating MySQL privilege database...
mysql.columns_priv OK
mysql.db OK
mysql.func OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.proc OK
mysql.procs_priv OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
ERROR 1060 (42S21) at line 22: Duplicate column name 'File_priv'
Starting service MySQL done
이제 Networking이 사용가능하게 되어 있는 지 확인하기 위해 다음 명령을 실행한다.
# netstat -tap
출력에서 다음과 같은 내용을 볼 수 있어야만 한다:
[...]
tcp 0 0 *:mysql *:* LISTEN 4298/mysqld
[...]
more..
[...]
tcp 0 0 *:mysql *:* LISTEN 4504/mysqld
[...]
이와 같은 내용이 보여지지 않는다면, /etc/my.cnf를 수정해야한다.
skip-networking option항목을 comment out한다:
# vi /etc/my.cnf
[...]
#skip-networking
[...]
그리고 MySQL Server를 재시작한다:
# /etc/init.d/mysql restart
Root user를 위한 Password를 지정해준다.(이렇게 하지 않으면 누구라도 당신의 MySQL Database에 접근할 수 있다.)
# mysqladmin -u root password rootsqlpassword
# mysqladmin -h server1.example.com -u root password rootsqlpassword
/////////////////////////////////////////////////////////////////////////////////////////////////
Tattertools의 사용을 위해서는 MySQL에 새로운 사용자를 생성하고 DB사용권한 설정을 해주어야한다.