1、在命令行中输入用户名和密码,启动MySQL
2、创建数据库【baidu】语句:create database baidu;
3、选择刚刚创建的数据库【baidu】语句:use baidu;
4、在数据库中创建表语句:create table test(id int,name varchar(20));
5、在表中插入数据insert into test values(1,'lin争犸禀淫'),(2,'xx');
6、使用select * from table_name来查询表中的数据语句:select * from test;