数据库备份导入
mysqldump -u root -p main_3_2_0 > /main_3_2_0.sql
use main_3_2_0
source /main_3_2_0.sql
#查询正在执行的sql
show full processlist
# 使用 kill id 来杀死进程
kill 483
#锁定主数据库
flush tables with read lock
INSERT INTO `kettle`.`user_copy` (`id`, `name`, `telphone`) VALUES ("4", "4", "4");
# [SQL]INSERT INTO `kettle`.`user_copy` (`id`, `name`, `telphone`) VALUES ("4", "4", "4");
# [Err] 1223 - Can"t execute the query because you have a conflicting read lock
#解锁主数据库
#切换回主数据库的终端,进行表解锁操作。
unlock tables;