欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Mysql 备份_MySQL

程序员文章站 2024-02-02 08:18:46
...
  1. mysqldump

    备份table

/usr/local/mysql/bin/mysqldump -h 192.168.0.123 -uyourmysql_user -p"yourpasswd" -B yourdatabase --tables yourtable > /tmp/test.sql

备份database

/usr/local/mysql/bin/mysqldump -h 192.168.0.123 -uyourmysql_user -p"yourpasswd" -B yourdatabase > /tmp/test.sql