745684 ランダム
 ホーム | 日記 | プロフィール 【フォローする】 【ログイン】

読書と技術となんか色々のログ

読書と技術となんか色々のログ

【毎日開催】
15記事にいいね!で1ポイント
10秒滞在
いいね! --/--
おめでとうございます!
ミッションを達成しました。
※「ポイントを獲得する」ボタンを押すと広告が表示されます。
x

PR

カレンダー

カテゴリ

2010年05月03日
XML
カテゴリ:[DB] MySQL
自宅サーバー構築メモ(その7) tritonn(MySQL)をインストール(その1)

OS:CentOS 5.4(x86_64)
Tritonn:tritonn-1.0.12a(MySQL5.0.87)

Tritonnプロジェクトからrpmを一式ダウンロードします。

インストールします。
# rpm -ivh mecab-0.98-tritonn.1.0.12a.x86_64.rpm
Preparing...                ########################################### [100%]
   1:mecab                  ########################################### [100%]

# rpm -ivh mecab-ipadic-2.7.0.20070801-tritonn.1.0.12a.x86_64.rpm
Preparing...                ########################################### [100%]
   1:mecab-ipadic           ########################################### [100%]

# rpm -ivh senna-1.1.4-tritonn.1.0.12a.x86_64.rpm
Preparing...                ########################################### [100%]
   1:senna                  ########################################### [100%]

# rpm -ivh MySQL-devel-5.0.87-tritonn.1.0.12a.x86_64.rpm
Preparing...                ########################################### [100%]
   1:MySQL-devel            ########################################### [100%]

# rpm -ivh MySQL-shared-5.0.87-tritonn.1.0.12a.x86_64.rpm
Preparing...                ########################################### [100%]
   1:MySQL-shared           ########################################### [100%]

# rpm -ivh MySQL-client-5.0.87-tritonn.1.0.12a.x86_64.rpm
Preparing...                ########################################### [100%]
   1:MySQL-client           ########################################### [100%]

# rpm -ivh MySQL-server-5.0.87-tritonn.1.0.12a.x86_64.rpm
Preparing...                ########################################### [100%]
   1:MySQL-server           ########################################### [100%]
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 ml115g5 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.

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
Starting MySQL.[ OK ]
Thank you for installing the MySQL Community Server! For Production
systems, we recommend MySQL Enterprise, which contains enterprise-ready
software, intelligent advisory services, and full production support with
scheduled service packs and more. Visit www.mysql.com/enterprise for more
information.

mysql_secure_installationスクリプトで、インストール後に行うべき作業をまとめて実行することができます。
# /usr/bin/mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): "enter"
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n] "enter"
New password: "rootのパスワード"
Re-enter new password: "rootのパスワード"
Password updated successfully!
Reloading privilege tables..
... Success!


By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] "enter"
... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] "enter"
... Success!

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] "enter"
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] "enter"
... Success!

Cleaning up...



All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

ログインできるか確認します。
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.0.87-modified MySQL Community Server (GPL) (portions (c) Tritonn Project)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
+--------------------+
2 rows in set (0.00 sec)

mysql>


その2へ続く





お気に入りの記事を「いいね!」で応援しよう

最終更新日  2010年05月16日 00時08分20秒
コメント(0) | コメントを書く



© Rakuten Group, Inc.