トップページ

Wikiリニューアル計画

  • まじめに個人用のナレッジベースとしたい
  • 仕事で得た知識・必要となる知識、個人的に勉強したもの、なんでも
  • ただのコピペ、記録にしない

メモページ

wikiっときたいことがら

お役立ちサイト

IT技術記事を読む



↓古いよ↓

tamotech@ウィキとは

  • たもつの個人ウィキである
  • IT技術に関するまとめ・備忘録をメインテーマとする
  • 資格取得対策に特化した内容もある
  • まったく関連の無いことのメモ代わりにもなったりする

タモテックノート

# /sbin/service tomcat5 start
Starting tomcat5:                                          [  OK  ]
#
  • mysql → CentOS5.5
    • mysql-5.0.77-4.el5_5.4ってのは最初から入ってるっぽい。。CentOSインストール時に入れたのかな。
# rpm -qa mysql*
mysql-5.0.77-4.el5_5.4
    • しかしサーバ起動コマンド(mysqld)が見つからない。mysql-serverをyumでインストール。
# yum -y install mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: www.ftp.ne.jp
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
addons                                                                          |  951 B     00:00
base                                                                            | 2.1 kB     00:00
dag                                                                             | 1.1 kB     00:00
extras                                                                          | 2.1 kB     00:00
updates                                                                         | 1.9 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.i386 0:5.0.77-4.el5_5.4 set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Running transaction check
---> Package perl-DBD-MySQL.i386 0:3.0007-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================
 Package                    Arch             Version                         Repository           Size
=======================================================================================================
Installing:
 mysql-server               i386             5.0.77-4.el5_5.4                updates             9.8 M
Installing for dependencies:
 perl-DBD-MySQL             i386             3.0007-2.el5                    base                148 k

Transaction Summary
=======================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 9.9 M
Downloading Packages:
(1/2): perl-DBD-MySQL-3.0007-2.el5.i386.rpm                                     | 148 kB     00:00
(2/2): mysql-server-5.0.77-4.el5_5.4.i386.rpm                                   | 9.8 MB     00:08
-------------------------------------------------------------------------------------------------------
Total                                                                  1.1 MB/s | 9.9 MB     00:09
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-DBD-MySQL                                                                  1/2
  Installing     : mysql-server                                                                    2/2

Installed:
  mysql-server.i386 0:5.0.77-4.el5_5.4

Dependency Installed:
  perl-DBD-MySQL.i386 0:3.0007-2.el5

Complete!
    • mysqldで起動成功
# /etc/init.d/mysqld start
MySQL データベースを初期化中:  Installing MySQL system tables...
110206 21:34:28 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
110206 21:34:28 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
110206 21:34:28 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
110206 21:34:28 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

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 localhost.localdomain password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

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
                                                           [  OK  ]
MySQL を起動中:                                            [  OK  ]
#

資格取得対策


メモ帳

最終更新:2011年11月09日 00:05