MySQL导入N种实现方式

2024年 3月 6日 30.0k 0

导入数据的语句

set character_set_client = utf8;
use sakila;
drop table stt;
create table stt
( id int not null,
str1 char(10) not null,
str2 varchar(60) not null,
str3 varchar(70) not null,
primary key(id)
) engine = InnoDB default charset = utf8mb4 ROW_FORMAT=COMPACT ;
insert into stt
values(2,'abcd22','!&','我爱中国');

将上述语句存为 testimport.sql

a.命令行 mysql

在cmd中执行

mysql -uroot -p123 -Dsakila

相关文章

pt-kill工具的使用
pt-ioprofile工具包的使用
数据库管理-第216期 Oracle的高可用-01(20240703)
DBMS_REPAIR EXAMPLE SCRIPT WITH PARTITION
数据库事务的四大特性: ACID 
使用BBED修复损坏的SYSTEM文件头

发布评论