MySQLの準備

参考サイト
MySQLクイック・リファレンス

DB作成

# mysql create test
# mysqlshow 
+--------------------+
|     Databases      |
+--------------------+
| information_schema |
| mysql              |
| test               |
+--------------------+

テーブル作成

# mysql test < c_bookmark.sql
# mysql test
mysql> desc bookmark
    -> ;
+-------------+--------------+------+-----+-------------------+----------------+
| Field       | Type         | Null | Key | Default           | Extra          |
+-------------+--------------+------+-----+-------------------+----------------+
| bookmark_id | int(11)      | NO   | PRI | NULL              | auto_increment | 
| url         | varchar(255) | YES  |     | NULL              |                | 
| title       | varchar(255) | YES  |     | NULL              |                | 
| record_time | timestamp    | NO   |     | CURRENT_TIMESTAMP |                | 
| comment     | text         | YES  |     | NULL              |                | 
+-------------+--------------+------+-----+-------------------+----------------+
5 rows in set (0.00 sec)

MySQLのコマンドわかんね。覚えること多すぎ(^^;