mysql常用命令

1.启动停止命令:

net stat mysql
net stop mysql

2.链接数据库

>mysql.exe -hlocalhost -uroot -pABC_abc1

3.创建数据库/表

create database root
show databases;

4.查看数据库、表信息
use databases;

show tables;
create table user(name varchar(20), age int, id int)

desc user

select * from user \p;

posted on 2017-02-28 23:26  ilinux_one  阅读(151)  评论(0)    收藏  举报

导航