连接数据库
con_mysql.png查看数据库
show_databases.png创建数据库
一般将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
);
create_database_table.png
网友评论