连接数据库
查看数据库
创建数据库
一般将sql语句保存在文本中,然后复制运行
create database test;
use test;
create table users(
id int not null auto_increment primary key,
username varchar(20) not null,
password varchar(32) not null
);
create table msg(
id int not null auto_increment primary key,
uid int not null,
title varchar(30) not null,
content varchar(1024) not null,
ip varchar(15) not null,
date int(15) not null
);