AMPSetup에서 install wizard로 설치후에 MySQL을 사용해 본다. apmsetup으로 설치를 하면 mysql console을 수행할 수 있고, 여기서 부터 mysql 명령을 통해 테이블을 만들어 보자
mysql> create database ajax;
Query OK, 1 row affected (0.00 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| ajax |
| mysql |
| phpmyadmin |
+--------------------+
4 rows in set (0.00 sec)
mysql> use ajax;
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> create table comment(
-> id int primary key,
-> name varchar(20) not null,
-> content long varchar not null
-> );
Query OK, 0 rows affected (0.01 sec)
mysql> create table id_repository(
-> name varchar(2) primary key,
-> value int
-> );
Query OK, 0 rows affected (0.01 sec)
mysql> insert into id_repository values('commnet', 0);
Query OK, 1 row affected, 1 warning (0.00 sec)