MYSQL5.1.32を別のディレクトリーとPortでインストールしてみました。

「–log_slow_queriesはMySQL7.0で無くなるとの事。
–slow_query_log/–slow_query_log_fileを代わりに利用して下さいとのメッセージが表示されました。」

============================================================================
1) MYSQLのダウンロードと展開後にシステムデータベースの作成
============================================================================

[root@DB001 mysql-5.1.32-linux-i686-icc-glibc23]# scripts/mysql_install_db
Installing MySQL system tables...
090318 10:06:58 [Warning] The syntax '--log_slow_queries' is deprecated and will be removed in MySQL 7.0. Please use '--slow_query_log'/'--slow_query_log_file' instead.
090318 10:06:58 [Warning] Forcing shutdown of 2 plugins
OK
Filling help tables...
090318 10:06:58 [Warning] The syntax '--log_slow_queries' is deprecated and will be removed in MySQL 7.0. Please use '--slow_query_log'/'--slow_query_log_file' instead.
090318 10:06:59 [Warning] Forcing shutdown of 2 plugins
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:

./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h DB001 password 'new-password'

Alternatively you can run:
./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 . ; ./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 ./bin/mysqlbug script!

The latest information about MySQL is available at http://www.mysql.com/
Support MySQL by buying support/licenses from http://shop.mysql.com/

[root@DB001 mysql-5.1.32-linux-i686-icc-glibc23]#

============================================================================
2) オプションファイルの設定変更
============================================================================
(例) clientやmysqldの項目

port = 3307
socket = /tmp/mysql-5.1.32.sock
basedir=/usr/local/mysql-5.1.32-linux-i686-icc-glibc23
datadir=/usr/local/mysql-5.1.32-linux-i686-icc-glibc23/data
log_slow_queries=/usr/local/mysql-5.1.32-linux-i686-icc-glibc23/data/slow_query.log

============================================================================
3) オプションファイルを指定して起動と確認
============================================================================

./bin/mysqld_safe --defaults-file=/etc/my5.1.32.cnf &

[root@DB001 mysql-5.1.32-linux-i686-icc-glibc23]# netstat -an | grep 3307
tcp        0      0 0.0.0.0:3307                0.0.0.0:*                   LISTEN
[root@DB001 mysql-5.1.32-linux-i686-icc-glibc23]# cd bin/

============================================================================
4) mysqlクライアントにてportとsocketを指定して接続
============================================================================

[root@DB001 bin]#<code> ./mysql -u root -p -P 3307 --socket=/tmp/mysql-5.1.32.sock</code>
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.32-log MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>SET PASSWORD FOR root@localhost = PASSWORD('パスワード');

mysql>

============================================================================
5) rootのパスワードを設定後に再度接続確認しデータベースの確認
============================================================================

[root@DB001 bin]#<code> ./mysql -u root -p -P 3307 --socket=/tmp/mysql-5.1.32.sock</code>
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.32-log MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
+--------------------+
3 rows in set (0.01 sec)

mysql>

============================================================================
6) 不要なアカウントの削除と確認
============================================================================

mysql> select user,host from user;
+------+--------------------+
| user | host               |
+------+--------------------+
| root | 127.0.0.1          |
|      | localhost          |
| root | localhost          |
|      | DB001              |
| root | DB001              |
+------+--------------------+
5 rows in set (0.00 sec)

mysql> delete from user where user ='';
Query OK, 2 rows affected (0.00 sec)

mysql> select user,host from user;
+------+--------------------+
| user | host               |
+------+--------------------+
| root | 127.0.0.1          |
| root | localhost          |
| root | DB001              |
+------+--------------------+
3 rows in set (0.00 sec)

mysql> SET PASSWORD FOR root@127.0.0.1 = PASSWORD('パスワード');
Query OK, 0 rows affected (0.00 sec)

mysql> SET PASSWORD FOR root@'DB001' = PASSWORD('パスワード');
Query OK, 0 rows affected (0.00 sec)

mysql>

============================================================================
7) 基本ステップ終了
============================================================================