mysql sql学习(一)mysql连接

mysql -h 192.168.3.103 -uroot -p123456 //连接数据库

s ;查看数据库状态

show databases; 查看是数据库

create database if not exists aa; 创建数据库

drop database if exists aa; 删除数据库

use aa; //使用数据库aa

show tables;//查看数据库

create table if not exists person (id int, name varchar(20), age int);//创建表

desc person;  //查看表结构

drop table if exists person;//删除表

原文地址:https://www.cnblogs.com/zhoulikai/p/3341692.html