login mysql command
mysql -u root -p
ps: where root is the user name and the password is 123456
to view the database
show databases;
create database
create database coding2022;
use the database and enter
use coding2022;
create table
create table user( id TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, name
VARCHAR(60) NOT NULL);
insert data
INSERT INTO user(id,name)VALUES(1,'every day'),(2,'world'),
Delete data
delete from user where id=2;
Query data
select * from user where id=1;
Cloud simulation mysql execution command address: http://www.gtalent.cn/room/webshell?id=36&cd