自宅サーバー構築メモ(その7) tritonn(MySQL)をインストール(その1)
自宅サーバー構築メモ(その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.rpmPreparing... ########################################### [100%] 1:mecab ########################################### [100%]# rpm -ivh mecab-ipadic-2.7.0.20070801-tritonn.1.0.12a.x86_64.rpmPreparing... ########################################### [100%] 1:mecab-ipadic ########################################### [100%]# rpm -ivh senna-1.1.4-tritonn.1.0.12a.x86_64.rpmPreparing... ########################################### [100%] 1:senna ########################################### [100%]# rpm -ivh MySQL-devel-5.0.87-tritonn.1.0.12a.x86_64.rpmPreparing... ########################################### [100%] 1:MySQL-devel ########################################### [100%]# rpm -ivh MySQL-shared-5.0.87-tritonn.1.0.12a.x86_64.rpmPreparing... ########################################### [100%] 1:MySQL-shared ########################################### [100%]# rpm -ivh MySQL-client-5.0.87-tritonn.1.0.12a.x86_64.rpmPreparing... ########################################### [100%] 1:MySQL-client ########################################### [100%]# rpm -ivh MySQL-server-5.0.87-tritonn.1.0.12a.x86_64.rpmPreparing... ########################################### [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_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly 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 athttp://www.mysql.comSupport MySQL by buying support/licenses at http://shop.mysql.comStarting MySQL.[ OK ]Thank you for installing the MySQL Community Server! For Productionsystems, we recommend MySQL Enterprise, which contains enterprise-readysoftware, intelligent advisory services, and full production support withscheduled service packs and more. Visit www.mysql.com/enterprise for moreinformation.mysql_secure_installationスクリプトで、インストール後に行うべき作業をまとめて実行することができます。# /usr/bin/mysql_secure_installationNOTE: 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 currentpassword for the root user. If you've just installed MySQL, andyou 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 MySQLroot 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 anyoneto log into MySQL without having to have a user account created forthem. This is intended only for testing, and to make the installationgo a bit smoother. You should remove them before moving into aproduction environment.Remove anonymous users? [Y/n] "enter" ... Success!Normally, root should only be allowed to connect from 'localhost'. Thisensures 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 canaccess. This is also intended only for testing, and should be removedbefore 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 farwill 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 MySQLinstallation should now be secure.Thanks for using MySQL!ログインできるか確認します。# mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 10Server 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へ続く