# http_proxy=http://my.proxy.co.jp:8080 yum -y install mysql-server
...
Complete!
# # chkconfig --list mysqld; chkconfig mysqld on && chkconfig --list mysqld
mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
#
# (cd / ; env - /etc/rc.d/init.d/mysqld start)
MySQL データベースを初期化中: Installing all prepared tables
Fill help tables
...
MySQL を起動中: [ OK ]
# # mysqlshow
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
# $ cat testbookmark-mysql-create.txt
create table testbookmark (
bookmark_id integer auto_increment primary key,
url varchar(255) ,
title varchar(255) ,
record_time timestamp ,
comment text
);
$ mysql test < testbookmark-mysql-create.txt
$ mysql test
...
mysql> show tables;
+----------------+
| Tables_in_test |
+----------------+
| testbookmark |
+----------------+
1 row in set (0.00 sec)
mysql> quit
Bye
$
完全なログは長いので,登録ユーザにのみ公開します.
カテゴリ:開発日記
<< 情報通信省 | Main | マックとワーク >>
いかちょー (2007-01-15 23:51) | コメント(0)| トラックバック(59)
トラックバックURL:
月別アーカイブ
Copyright (C) 2004-2011 Nihon Unisys, Ltd. All Rights Reserved.
Powered by Movable Type Open Source