标签:
1. mysqld -install; //装载MySQL
2. net start mysql; //启动MySQL
3. create database student; //创建数据库
4. show databases; //查看所有数据库
5. use student; //使用当前数据库
6. describe student; //查看表头详情信息
7. mysql> create table students //创建数据表
-> (
-> id int unsigned not null auto_increment primary key,
-> name char(8) not null,
-> set char(4) not null,
-> age tinyint unsigned not null,
-> tel char(13) null default "-");
8. show tables; //查看所有表
标签:
原文地址:http://www.cnblogs.com/mypsq/p/5150784.html