linux导出mysql 某表语句数据

1.只导出数据

  mysqldump -t -hip-ufabu -p73R4_h8td6fE  database table > file.sql

导出表结构去掉-t

2.查看连接数

mysqladmin -hip -ufabu -p73R4_h8td6fE status

Threads就是连接数

3.show processlist

4.复制数据库

CREATE DATABASE `xytest` DEFAULT CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI;
mysqldump osspdev -u root -ppassword --add-drop-table | mysql xytest -u root -ppassword

猜你喜欢

转载自blog.csdn.net/qq_29290295/article/details/82350121