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

Logo

更多推荐