« 3.My SQLの初期設定 | メイン | 1.jpegsrc.v6bインストール(jpeg画像対応のため) »

2005年08月25日

4.データベースの作成

# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 3.23.58

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

mysql> create database mtdb;
mysql> show databases ;
+----------+
| Database |
+----------+
| mtdb |
| mysql |
| test |
+----------+
3 rows in set (0.00 sec)

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> grant select,insert,delete,update,create,drop,file,alter,index on mtdb.* to mtuser identified by 'mtpass' ;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit

投稿者 shell : 2005年08月25日 14:31

コメント

コメントしてください




保存しますか?

(書式を変更するような一部のHTMLタグを使うことができます)